@keystrokehq/opencage 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/geocode-forward.cjs +1 -0
- package/dist/actions/geocode-forward.cjs.map +1 -1
- package/dist/actions/geocode-forward.d.cts +3 -25
- package/dist/actions/geocode-forward.d.cts.map +1 -1
- package/dist/actions/geocode-forward.d.mts +3 -25
- package/dist/actions/geocode-forward.d.mts.map +1 -1
- package/dist/actions/geocode-forward.mjs +1 -0
- package/dist/actions/geocode-forward.mjs.map +1 -1
- package/dist/actions/geocode-geojson.cjs +1 -0
- package/dist/actions/geocode-geojson.cjs.map +1 -1
- package/dist/actions/geocode-geojson.d.cts +3 -27
- package/dist/actions/geocode-geojson.d.cts.map +1 -1
- package/dist/actions/geocode-geojson.d.mts +3 -27
- package/dist/actions/geocode-geojson.d.mts.map +1 -1
- package/dist/actions/geocode-geojson.mjs +1 -0
- package/dist/actions/geocode-geojson.mjs.map +1 -1
- package/dist/actions/geocode-geojsonp.cjs +1 -0
- package/dist/actions/geocode-geojsonp.cjs.map +1 -1
- package/dist/actions/geocode-geojsonp.d.cts +3 -28
- package/dist/actions/geocode-geojsonp.d.cts.map +1 -1
- package/dist/actions/geocode-geojsonp.d.mts +3 -28
- package/dist/actions/geocode-geojsonp.d.mts.map +1 -1
- package/dist/actions/geocode-geojsonp.mjs +1 -0
- package/dist/actions/geocode-geojsonp.mjs.map +1 -1
- package/dist/actions/geocode-google-v3-json.cjs +1 -0
- package/dist/actions/geocode-google-v3-json.cjs.map +1 -1
- package/dist/actions/geocode-google-v3-json.d.cts +3 -28
- package/dist/actions/geocode-google-v3-json.d.cts.map +1 -1
- package/dist/actions/geocode-google-v3-json.d.mts +3 -28
- package/dist/actions/geocode-google-v3-json.d.mts.map +1 -1
- package/dist/actions/geocode-google-v3-json.mjs +1 -0
- package/dist/actions/geocode-google-v3-json.mjs.map +1 -1
- package/dist/actions/geocode-reverse.cjs +1 -0
- package/dist/actions/geocode-reverse.cjs.map +1 -1
- package/dist/actions/geocode-reverse.d.cts +3 -25
- package/dist/actions/geocode-reverse.d.cts.map +1 -1
- package/dist/actions/geocode-reverse.d.mts +3 -25
- package/dist/actions/geocode-reverse.d.mts.map +1 -1
- package/dist/actions/geocode-reverse.mjs +1 -0
- package/dist/actions/geocode-reverse.mjs.map +1 -1
- package/dist/actions/geocode-xml.cjs +1 -0
- package/dist/actions/geocode-xml.cjs.map +1 -1
- package/dist/actions/geocode-xml.d.cts +3 -25
- package/dist/actions/geocode-xml.d.cts.map +1 -1
- package/dist/actions/geocode-xml.d.mts +3 -25
- package/dist/actions/geocode-xml.d.mts.map +1 -1
- package/dist/actions/geocode-xml.mjs +1 -0
- package/dist/actions/geocode-xml.mjs.map +1 -1
- package/dist/actions/ping-opencage.cjs +1 -0
- package/dist/actions/ping-opencage.cjs.map +1 -1
- package/dist/actions/ping-opencage.d.cts +3 -13
- package/dist/actions/ping-opencage.d.cts.map +1 -1
- package/dist/actions/ping-opencage.d.mts +3 -13
- package/dist/actions/ping-opencage.d.mts.map +1 -1
- package/dist/actions/ping-opencage.mjs +1 -0
- package/dist/actions/ping-opencage.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["opencage","executeOpencageTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { opencage } from \"./app\";\nimport { executeOpencageTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["opencage","executeOpencageTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { opencage } from \"./app\";\nimport { executeOpencageTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof opencage.credential> {\n return opencage.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeOpencageTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { opencage } from \"./app\";\nimport { executeOpencageTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { opencage } from \"./app\";\nimport { executeOpencageTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof opencage.credential> {\n return opencage.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeOpencageTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-forward.cjs","names":["z","action"],"sources":["../../src/actions/geocode-forward.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeForwardInput = z.object({\n q: z.string().describe(\"The address or free-form query to geocode\"),\n abbrv: z.number().int().describe(\"Return abbreviated results (0=false,1=true)\").optional(),\n limit: z.number().int().describe(\"Maximum number of results (1-100)\").optional(),\n bounds: z.string().describe(\"Bias results to bounding box: west,south,east,north\").optional(),\n pretty: z.boolean().default(false).describe(\"Format the JSON response for readability\").optional(),\n language: z.string().describe(\"Preferred language for results (ISO 639-1 code)\").optional(),\n proximity: z.string().describe(\"Bias results near a point: latitude,longitude\").optional(),\n add_request: z.number().int().describe(\"Include original request in response (0=false,1=true)\").optional(),\n countrycode: z.string().describe(\"Restrict to country codes (comma-separated ISO 3166-1 alpha-2)\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (1-10)\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude supplementary information in results\").optional(),\n}).describe(\"Request parameters for forward geocoding.\");\nconst OpencageGeocodeForward_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of requests\").nullable(),\n reset: z.number().int().describe(\"Reset timestamp (UNIX)\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSideSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSchema = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of result\").nullable(),\n lng: z.number().describe(\"Longitude of result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_ResultSchema = z.object({\n bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),\n geometry: OpencageGeocodeForward_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Formatted address string\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Address component breakdown\"),\n confidence: z.number().int().describe(\"Confidence score\").nullable(),\n annotations: z.record(z.string(), z.unknown()).describe(\"Supplementary annotations (excluded when no_annotations=true)\").nullable().optional(),\n}).passthrough();\nconst OpencageGeocodeForward_LicenseSchema = z.object({\n url: z.string().describe(\"License URL\").nullable(),\n name: z.string().describe(\"License name\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_TimestampSchema = z.object({\n created_http: z.string().describe(\"Creation time (HTTP format)\").nullable(),\n created_unix: z.number().int().describe(\"Creation time (UNIX timestamp)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL\").nullable().optional(),\n twitter: z.string().describe(\"Twitter URL\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon URL\").nullable().optional(),\n}).passthrough();\nexport const OpencageGeocodeForwardOutput = z.object({\n rate: OpencageGeocodeForward_RateSchema.nullable(),\n status: OpencageGeocodeForward_StatusSchema.nullable(),\n thanks: z.string().describe(\"Thank you message\").nullable(),\n results: z.array(OpencageGeocodeForward_ResultSchema).describe(\"List of geocoding results\"),\n licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe(\"List of data licenses\"),\n timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),\n documentation: z.string().describe(\"Link to API documentation\").nullable(),\n stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results returned\").nullable(),\n}).passthrough();\n\nexport const opencageGeocodeForward = action(\"OPENCAGE_GEOCODE_FORWARD\", {\n slug: \"opencage-geocode-forward\",\n name: \"Forward Geocode Address\",\n description: \"Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.\",\n input: OpencageGeocodeForwardInput,\n output: OpencageGeocodeForwardOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geocode-forward.cjs","names":["z","action"],"sources":["../../src/actions/geocode-forward.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeForwardInput = z.object({\n q: z.string().describe(\"The address or free-form query to geocode\"),\n abbrv: z.number().int().describe(\"Return abbreviated results (0=false,1=true)\").optional(),\n limit: z.number().int().describe(\"Maximum number of results (1-100)\").optional(),\n bounds: z.string().describe(\"Bias results to bounding box: west,south,east,north\").optional(),\n pretty: z.boolean().default(false).describe(\"Format the JSON response for readability\").optional(),\n language: z.string().describe(\"Preferred language for results (ISO 639-1 code)\").optional(),\n proximity: z.string().describe(\"Bias results near a point: latitude,longitude\").optional(),\n add_request: z.number().int().describe(\"Include original request in response (0=false,1=true)\").optional(),\n countrycode: z.string().describe(\"Restrict to country codes (comma-separated ISO 3166-1 alpha-2)\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (1-10)\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude supplementary information in results\").optional(),\n}).describe(\"Request parameters for forward geocoding.\");\nconst OpencageGeocodeForward_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of requests\").nullable(),\n reset: z.number().int().describe(\"Reset timestamp (UNIX)\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSideSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSchema = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of result\").nullable(),\n lng: z.number().describe(\"Longitude of result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_ResultSchema = z.object({\n bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),\n geometry: OpencageGeocodeForward_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Formatted address string\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Address component breakdown\"),\n confidence: z.number().int().describe(\"Confidence score\").nullable(),\n annotations: z.record(z.string(), z.unknown()).describe(\"Supplementary annotations (excluded when no_annotations=true)\").nullable().optional(),\n}).passthrough();\nconst OpencageGeocodeForward_LicenseSchema = z.object({\n url: z.string().describe(\"License URL\").nullable(),\n name: z.string().describe(\"License name\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_TimestampSchema = z.object({\n created_http: z.string().describe(\"Creation time (HTTP format)\").nullable(),\n created_unix: z.number().int().describe(\"Creation time (UNIX timestamp)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL\").nullable().optional(),\n twitter: z.string().describe(\"Twitter URL\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon URL\").nullable().optional(),\n}).passthrough();\nexport const OpencageGeocodeForwardOutput = z.object({\n rate: OpencageGeocodeForward_RateSchema.nullable(),\n status: OpencageGeocodeForward_StatusSchema.nullable(),\n thanks: z.string().describe(\"Thank you message\").nullable(),\n results: z.array(OpencageGeocodeForward_ResultSchema).describe(\"List of geocoding results\"),\n licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe(\"List of data licenses\"),\n timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),\n documentation: z.string().describe(\"Link to API documentation\").nullable(),\n stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results returned\").nullable(),\n}).passthrough();\n\nexport const opencageGeocodeForward: AppAction<\n typeof OpencageGeocodeForwardInput,\n typeof OpencageGeocodeForwardOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_FORWARD\", {\n slug: \"opencage-geocode-forward\",\n name: \"Forward Geocode Address\",\n description: \"Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.\",\n input: OpencageGeocodeForwardInput,\n output: OpencageGeocodeForwardOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,C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AA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,uBAAuB;CACxF,WAAW,uCAAuC,SAAS;CAC3D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,eAAe,0CAA0C,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { opencage } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/geocode-forward.d.ts
|
|
@@ -61,31 +63,7 @@ declare const OpencageGeocodeForwardOutput: z.ZodObject<{
|
|
|
61
63
|
}, z.core.$loose>>;
|
|
62
64
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
63
65
|
}, z.core.$loose>;
|
|
64
|
-
declare const opencageGeocodeForward:
|
|
65
|
-
q: string;
|
|
66
|
-
abbrv?: number | undefined;
|
|
67
|
-
limit?: number | undefined;
|
|
68
|
-
bounds?: string | undefined;
|
|
69
|
-
pretty?: boolean | undefined;
|
|
70
|
-
language?: string | undefined;
|
|
71
|
-
proximity?: string | undefined;
|
|
72
|
-
add_request?: number | undefined;
|
|
73
|
-
countrycode?: string | undefined;
|
|
74
|
-
min_confidence?: number | undefined;
|
|
75
|
-
no_annotations?: boolean | undefined;
|
|
76
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
77
|
-
connectionId: z.ZodString;
|
|
78
|
-
entityId: z.ZodString;
|
|
79
|
-
instanceId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
generic_key: z.ZodString;
|
|
82
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
83
|
-
connectionId: z.ZodString;
|
|
84
|
-
entityId: z.ZodString;
|
|
85
|
-
instanceId: z.ZodString;
|
|
86
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
-
generic_key: z.ZodString;
|
|
88
|
-
}, z.core.$strip>>]>;
|
|
66
|
+
declare const opencageGeocodeForward: AppAction<typeof OpencageGeocodeForwardInput, typeof OpencageGeocodeForwardOutput, typeof opencage.credential>;
|
|
89
67
|
//#endregion
|
|
90
68
|
export { opencageGeocodeForward };
|
|
91
69
|
//# sourceMappingURL=geocode-forward.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-forward.d.cts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geocode-forward.d.cts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAuD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { opencage } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/geocode-forward.d.ts
|
|
@@ -61,31 +63,7 @@ declare const OpencageGeocodeForwardOutput: z.ZodObject<{
|
|
|
61
63
|
}, z.core.$loose>>;
|
|
62
64
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
63
65
|
}, z.core.$loose>;
|
|
64
|
-
declare const opencageGeocodeForward:
|
|
65
|
-
q: string;
|
|
66
|
-
abbrv?: number | undefined;
|
|
67
|
-
limit?: number | undefined;
|
|
68
|
-
bounds?: string | undefined;
|
|
69
|
-
pretty?: boolean | undefined;
|
|
70
|
-
language?: string | undefined;
|
|
71
|
-
proximity?: string | undefined;
|
|
72
|
-
add_request?: number | undefined;
|
|
73
|
-
countrycode?: string | undefined;
|
|
74
|
-
min_confidence?: number | undefined;
|
|
75
|
-
no_annotations?: boolean | undefined;
|
|
76
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
77
|
-
connectionId: z.ZodString;
|
|
78
|
-
entityId: z.ZodString;
|
|
79
|
-
instanceId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
generic_key: z.ZodString;
|
|
82
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
83
|
-
connectionId: z.ZodString;
|
|
84
|
-
entityId: z.ZodString;
|
|
85
|
-
instanceId: z.ZodString;
|
|
86
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
-
generic_key: z.ZodString;
|
|
88
|
-
}, z.core.$strip>>]>;
|
|
66
|
+
declare const opencageGeocodeForward: AppAction<typeof OpencageGeocodeForwardInput, typeof OpencageGeocodeForwardOutput, typeof opencage.credential>;
|
|
89
67
|
//#endregion
|
|
90
68
|
export { opencageGeocodeForward };
|
|
91
69
|
//# sourceMappingURL=geocode-forward.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-forward.d.mts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geocode-forward.d.mts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAuD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-forward.mjs","names":[],"sources":["../../src/actions/geocode-forward.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeForwardInput = z.object({\n q: z.string().describe(\"The address or free-form query to geocode\"),\n abbrv: z.number().int().describe(\"Return abbreviated results (0=false,1=true)\").optional(),\n limit: z.number().int().describe(\"Maximum number of results (1-100)\").optional(),\n bounds: z.string().describe(\"Bias results to bounding box: west,south,east,north\").optional(),\n pretty: z.boolean().default(false).describe(\"Format the JSON response for readability\").optional(),\n language: z.string().describe(\"Preferred language for results (ISO 639-1 code)\").optional(),\n proximity: z.string().describe(\"Bias results near a point: latitude,longitude\").optional(),\n add_request: z.number().int().describe(\"Include original request in response (0=false,1=true)\").optional(),\n countrycode: z.string().describe(\"Restrict to country codes (comma-separated ISO 3166-1 alpha-2)\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (1-10)\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude supplementary information in results\").optional(),\n}).describe(\"Request parameters for forward geocoding.\");\nconst OpencageGeocodeForward_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of requests\").nullable(),\n reset: z.number().int().describe(\"Reset timestamp (UNIX)\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSideSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSchema = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of result\").nullable(),\n lng: z.number().describe(\"Longitude of result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_ResultSchema = z.object({\n bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),\n geometry: OpencageGeocodeForward_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Formatted address string\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Address component breakdown\"),\n confidence: z.number().int().describe(\"Confidence score\").nullable(),\n annotations: z.record(z.string(), z.unknown()).describe(\"Supplementary annotations (excluded when no_annotations=true)\").nullable().optional(),\n}).passthrough();\nconst OpencageGeocodeForward_LicenseSchema = z.object({\n url: z.string().describe(\"License URL\").nullable(),\n name: z.string().describe(\"License name\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_TimestampSchema = z.object({\n created_http: z.string().describe(\"Creation time (HTTP format)\").nullable(),\n created_unix: z.number().int().describe(\"Creation time (UNIX timestamp)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL\").nullable().optional(),\n twitter: z.string().describe(\"Twitter URL\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon URL\").nullable().optional(),\n}).passthrough();\nexport const OpencageGeocodeForwardOutput = z.object({\n rate: OpencageGeocodeForward_RateSchema.nullable(),\n status: OpencageGeocodeForward_StatusSchema.nullable(),\n thanks: z.string().describe(\"Thank you message\").nullable(),\n results: z.array(OpencageGeocodeForward_ResultSchema).describe(\"List of geocoding results\"),\n licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe(\"List of data licenses\"),\n timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),\n documentation: z.string().describe(\"Link to API documentation\").nullable(),\n stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results returned\").nullable(),\n}).passthrough();\n\nexport const opencageGeocodeForward = action(\"OPENCAGE_GEOCODE_FORWARD\", {\n slug: \"opencage-geocode-forward\",\n name: \"Forward Geocode Address\",\n description: \"Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.\",\n input: OpencageGeocodeForwardInput,\n output: OpencageGeocodeForwardOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geocode-forward.mjs","names":[],"sources":["../../src/actions/geocode-forward.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeForwardInput = z.object({\n q: z.string().describe(\"The address or free-form query to geocode\"),\n abbrv: z.number().int().describe(\"Return abbreviated results (0=false,1=true)\").optional(),\n limit: z.number().int().describe(\"Maximum number of results (1-100)\").optional(),\n bounds: z.string().describe(\"Bias results to bounding box: west,south,east,north\").optional(),\n pretty: z.boolean().default(false).describe(\"Format the JSON response for readability\").optional(),\n language: z.string().describe(\"Preferred language for results (ISO 639-1 code)\").optional(),\n proximity: z.string().describe(\"Bias results near a point: latitude,longitude\").optional(),\n add_request: z.number().int().describe(\"Include original request in response (0=false,1=true)\").optional(),\n countrycode: z.string().describe(\"Restrict to country codes (comma-separated ISO 3166-1 alpha-2)\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (1-10)\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude supplementary information in results\").optional(),\n}).describe(\"Request parameters for forward geocoding.\");\nconst OpencageGeocodeForward_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of requests\").nullable(),\n reset: z.number().int().describe(\"Reset timestamp (UNIX)\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSideSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_BoundsSchema = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of result\").nullable(),\n lng: z.number().describe(\"Longitude of result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_ResultSchema = z.object({\n bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),\n geometry: OpencageGeocodeForward_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Formatted address string\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Address component breakdown\"),\n confidence: z.number().int().describe(\"Confidence score\").nullable(),\n annotations: z.record(z.string(), z.unknown()).describe(\"Supplementary annotations (excluded when no_annotations=true)\").nullable().optional(),\n}).passthrough();\nconst OpencageGeocodeForward_LicenseSchema = z.object({\n url: z.string().describe(\"License URL\").nullable(),\n name: z.string().describe(\"License name\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_TimestampSchema = z.object({\n created_http: z.string().describe(\"Creation time (HTTP format)\").nullable(),\n created_unix: z.number().int().describe(\"Creation time (UNIX timestamp)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeForward_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL\").nullable().optional(),\n twitter: z.string().describe(\"Twitter URL\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon URL\").nullable().optional(),\n}).passthrough();\nexport const OpencageGeocodeForwardOutput = z.object({\n rate: OpencageGeocodeForward_RateSchema.nullable(),\n status: OpencageGeocodeForward_StatusSchema.nullable(),\n thanks: z.string().describe(\"Thank you message\").nullable(),\n results: z.array(OpencageGeocodeForward_ResultSchema).describe(\"List of geocoding results\"),\n licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe(\"List of data licenses\"),\n timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),\n documentation: z.string().describe(\"Link to API documentation\").nullable(),\n stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results returned\").nullable(),\n}).passthrough();\n\nexport const opencageGeocodeForward: AppAction<\n typeof OpencageGeocodeForwardInput,\n typeof OpencageGeocodeForwardOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_FORWARD\", {\n slug: \"opencage-geocode-forward\",\n name: \"Forward Geocode Address\",\n description: \"Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.\",\n input: OpencageGeocodeForwardInput,\n output: OpencageGeocodeForwardOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzG,a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EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AAaf,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArB0C,EAAE,OAAO;EACnD,MAAM,kCAAkC,SAAS;EACjD,QAAQ,oCAAoC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC1D,SAAS,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;EAC1F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,uBAAuB;EACxF,WAAW,uCAAuC,SAAS;EAC3D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACzE,eAAe,0CAA0C,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-geojson.cjs","names":["z","action"],"sources":["../../src/actions/geocode-geojson.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeGeojsonInput = z.object({\n q: z.string().describe(\"Query string: either an address/placename for forward geocoding, or 'lat,lng' coordinates for reverse geocoding.\"),\n abbrv: z.number().int().describe(\"Use abbreviated address fields: 1 to enable, 0 to disable.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10.\").optional(),\n bounds: z.string().describe(\"Restrict results to bounding box as 'min_lng,min_lat,max_lng,max_lat'.\").optional(),\n pretty: z.boolean().default(false).describe(\"Pretty-print the JSON response for readability.\").optional(),\n language: z.string().describe(\"Preferred response language as IETF language tag (e.g., 'en', 'de', 'fr').\").optional(),\n roadinfo: z.boolean().default(false).describe(\"Include detailed road/driving information in annotations.\").optional(),\n proximity: z.string().describe(\"Bias results toward a location as 'lat,lng' (e.g., '52.5200,13.4050').\").optional(),\n add_request: z.boolean().default(false).describe(\"Include original request parameters in the response.\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries. Comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us', 'de,fr').\").optional(),\n address_only: z.boolean().default(false).describe(\"Return only address-type results (exclude POIs, landmarks).\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level for results (1-10). Only results with confidence >= this value are returned.\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude detailed annotations (timezone, currency, sun times, etc.) from response.\").optional(),\n}).describe(\"Request parameters for geocoding to GeoJSON format.\\nSupports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).\");\nconst OpencageGeocodeGeojson_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum requests allowed per day.\").nullable(),\n reset: z.number().int().describe(\"UNIX timestamp when limit resets.\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests today.\").nullable(),\n}).passthrough().describe(\"API rate limit information.\");\nconst OpencageGeocodeGeojson_StatusSchema = z.object({\n code: z.number().int().describe(\"HTTP-like status code (200=OK, 400=invalid, etc.).\").nullable(),\n message: z.string().describe(\"Status message.\").nullable(),\n}).passthrough().describe(\"API response status.\");\nconst OpencageGeocodeGeojson_GeometrySchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type, always 'Point' for geocoding results.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON Point geometry.\");\nconst OpencageGeocodeGeojson_BoundsSchema = z.object({\n northeast: z.record(z.string(), z.unknown()).describe(\"Northeast corner with 'lat' and 'lng'.\"),\n southwest: z.record(z.string(), z.unknown()).describe(\"Southwest corner with 'lat' and 'lng'.\"),\n}).passthrough().describe(\"Geographic bounding box.\");\nconst OpencageGeocodeGeojson_AnnotationDMSSchema = z.object({\n lat: z.string().describe(\"Latitude in DMS format (e.g., \\\"52° 31' 2.59860'' N\\\").\").nullable(),\n lng: z.string().describe(\"Longitude in DMS format (e.g., \\\"13° 23' 42.47124'' E\\\").\").nullable(),\n}).passthrough().describe(\"Coordinates in Degrees Minutes Seconds format.\");\nconst OpencageGeocodeGeojson_AnnotationOSMSchema = z.object({\n url: z.string().describe(\"URL to view this location on OpenStreetMap.\").nullable().optional(),\n edit_url: z.string().describe(\"URL to edit this location on OpenStreetMap.\").nullable().optional(),\n note_url: z.string().describe(\"URL to add a note at this location.\").nullable().optional(),\n}).passthrough().describe(\"OpenStreetMap links.\");\nconst OpencageGeocodeGeojson_SunTimesSchema = z.object({\n civil: z.number().int().describe(\"Civil twilight time (UNIX timestamp).\").nullable(),\n apparent: z.number().int().describe(\"Apparent sunrise/sunset time (UNIX timestamp).\").nullable(),\n nautical: z.number().int().describe(\"Nautical twilight time (UNIX timestamp).\").nullable(),\n astronomical: z.number().int().describe(\"Astronomical twilight time (UNIX timestamp).\").nullable(),\n}).passthrough().describe(\"Sun timing information with different twilight types.\");\nconst OpencageGeocodeGeojson_AnnotationSunSchema = z.object({\n set: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n rise: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n}).passthrough().describe(\"Sunrise and sunset times for the location.\");\nconst OpencageGeocodeGeojson_AnnotationMercatorSchema = z.object({\n x: z.number().describe(\"Mercator x-coordinate (easting).\").nullable(),\n y: z.number().describe(\"Mercator y-coordinate (northing).\").nullable(),\n}).passthrough().describe(\"Coordinates in Web Mercator projection (EPSG:3857).\");\nconst OpencageGeocodeGeojson_AnnotationCurrencySchema = z.object({\n name: z.string().describe(\"Currency name (e.g., 'Euro').\").nullable(),\n symbol: z.string().describe(\"Currency symbol (e.g., '€').\").nullable(),\n subunit: z.string().describe(\"Name of the subunit (e.g., 'Cent').\").nullable().optional(),\n iso_code: z.string().describe(\"ISO 4217 currency code (e.g., 'EUR').\").nullable(),\n html_entity: z.string().describe(\"HTML entity for the currency symbol.\").nullable().optional(),\n iso_numeric: z.string().describe(\"ISO 4217 numeric code.\").nullable().optional(),\n decimal_mark: z.string().describe(\"Decimal separator character.\").nullable().optional(),\n symbol_first: z.number().int().describe(\"Whether symbol appears before amount (1) or after (0).\").nullable().optional(),\n subunit_to_unit: z.number().int().describe(\"Number of subunits in one unit.\").nullable().optional(),\n alternate_symbols: z.array(z.string()).describe(\"Alternative currency symbols.\").nullable().optional(),\n thousands_separator: z.string().describe(\"Thousands separator character.\").nullable().optional(),\n smallest_denomination: z.number().int().describe(\"Smallest physical denomination.\").nullable().optional(),\n}).passthrough().describe(\"Currency information for the location's country.\");\nconst OpencageGeocodeGeojson_AnnotationRoadInfoSchema = z.object({\n road: z.string().describe(\"Road name if available.\").nullable().optional(),\n drive_on: z.string().describe(\"Side of road for driving ('left' or 'right').\").nullable(),\n speed_in: z.string().describe(\"Speed unit used ('km/h' or 'mph').\").nullable(),\n road_type: z.string().describe(\"Type of road.\").nullable().optional(),\n}).passthrough().describe(\"Road and driving information.\");\nconst OpencageGeocodeGeojson_AnnotationTimezoneSchema = z.object({\n name: z.string().describe(\"IANA timezone name (e.g., 'Europe/Berlin').\").nullable(),\n now_in_dst: z.number().int().describe(\"Whether currently in DST (1) or not (0).\").nullable(),\n offset_sec: z.number().int().describe(\"UTC offset in seconds.\").nullable(),\n short_name: z.string().describe(\"Timezone abbreviation (e.g., 'CET').\").nullable(),\n offset_string: z.string().describe(\"UTC offset as string (e.g., '+0100').\").nullable(),\n}).passthrough().describe(\"Timezone information.\");\nconst OpencageGeocodeGeojson_AnnotationsSchema = z.object({\n DMS: OpencageGeocodeGeojson_AnnotationDMSSchema.nullable().optional(),\n OSM: OpencageGeocodeGeojson_AnnotationOSMSchema.nullable().optional(),\n sun: OpencageGeocodeGeojson_AnnotationSunSchema.nullable().optional(),\n MGRS: z.string().describe(\"Military Grid Reference System coordinate.\").nullable().optional(),\n NUTS: z.record(z.string(), z.unknown()).describe(\"EU NUTS region codes.\").nullable().optional(),\n flag: z.string().describe(\"Country flag emoji.\").nullable().optional(),\n qibla: z.number().describe(\"Direction to Mecca in degrees.\").nullable().optional(),\n UN_M49: z.record(z.string(), z.unknown()).describe(\"UN M49 region codes.\").nullable().optional(),\n geohash: z.string().describe(\"Geohash of the location.\").nullable().optional(),\n Mercator: OpencageGeocodeGeojson_AnnotationMercatorSchema.nullable().optional(),\n currency: OpencageGeocodeGeojson_AnnotationCurrencySchema.nullable().optional(),\n roadinfo: OpencageGeocodeGeojson_AnnotationRoadInfoSchema.nullable().optional(),\n timezone: OpencageGeocodeGeojson_AnnotationTimezoneSchema.nullable().optional(),\n wikidata: z.string().describe(\"Wikidata identifier.\").nullable().optional(),\n Maidenhead: z.string().describe(\"Maidenhead (amateur radio) grid locator.\").nullable().optional(),\n what3words: z.record(z.string(), z.unknown()).describe(\"What3Words address.\").nullable().optional(),\n callingcode: z.number().int().describe(\"International calling code.\").nullable().optional(),\n}).passthrough().describe(\"Additional geographic annotations for a result. All fields are optional as they depend on API parameters.\");\nconst OpencageGeocodeGeojson_FeaturePropertiesSchema = z.object({\n bounds: OpencageGeocodeGeojson_BoundsSchema.nullable().optional(),\n formatted: z.string().describe(\"Fully formatted address string.\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Structured address components (country, city, street, etc.).\"),\n confidence: z.number().int().describe(\"Confidence score (1-10) for this result.\").nullable(),\n annotations: OpencageGeocodeGeojson_AnnotationsSchema.nullable().optional(),\n}).passthrough().describe(\"Properties of a GeoJSON feature from geocoding.\");\nconst OpencageGeocodeGeojson_FeatureSchema = z.object({\n type: z.string().describe(\"GeoJSON type, always 'Feature'.\").nullable(),\n geometry: OpencageGeocodeGeojson_GeometrySchema.nullable(),\n properties: OpencageGeocodeGeojson_FeaturePropertiesSchema.nullable(),\n}).passthrough().describe(\"GeoJSON Feature representing a geocoding result.\");\nconst OpencageGeocodeGeojson_LicenseSchema = z.object({\n url: z.string().describe(\"URL to license details.\").nullable(),\n name: z.string().describe(\"License name.\").nullable(),\n}).passthrough().describe(\"Data license information.\");\nconst OpencageGeocodeGeojson_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp in HTTP date format.\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp as UNIX epoch seconds.\").nullable(),\n}).passthrough().describe(\"Response timestamp.\");\nconst OpencageGeocodeGeojson_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL.\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon profile URL.\").nullable().optional(),\n}).passthrough().describe(\"Links to stay informed about the API.\");\nexport const OpencageGeocodeGeojsonOutput = z.object({\n rate: OpencageGeocodeGeojson_RateSchema.nullable().optional(),\n type: z.string().describe(\"GeoJSON type, always 'FeatureCollection'.\").nullable(),\n status: OpencageGeocodeGeojson_StatusSchema.nullable().optional(),\n thanks: z.string().describe(\"Thank you message from API.\").nullable().optional(),\n features: z.array(OpencageGeocodeGeojson_FeatureSchema).describe(\"List of geocoding results as GeoJSON features.\"),\n licenses: z.array(OpencageGeocodeGeojson_LicenseSchema).describe(\"Data license information.\"),\n timestamp: OpencageGeocodeGeojson_TimestampSchema.nullable().optional(),\n documentation: z.string().describe(\"Link to API documentation.\").nullable().optional(),\n stay_informed: OpencageGeocodeGeojson_StayInformedSchema.nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results returned.\").nullable().optional(),\n}).passthrough().describe(\"GeoJSON FeatureCollection response from OpenCage geocoding API.\\nContains geocoding results as GeoJSON features with rich metadata.\");\n\nexport const opencageGeocodeGeojson = action(\"OPENCAGE_GEOCODE_GEOJSON\", {\n slug: \"opencage-geocode-geojson\",\n name: \"Geocode to GeoJSON\",\n description: \"Geocode addresses or coordinates and return results in GeoJSON FeatureCollection format. Use this tool when you need: - Geographic data in standard GeoJSON format for mapping applications - Forward geocoding: convert addresses to coordinates - Reverse geocoding: convert coordinates to addresses The response includes coordinates, formatted addresses, and optional annotations like timezone, currency, and sun times for each location.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F,WAAW,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACtE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAe,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI;AAE/J,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"geocode-geojson.cjs","names":["z","action"],"sources":["../../src/actions/geocode-geojson.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeGeojsonInput = z.object({\n q: z.string().describe(\"Query string: either an address/placename for forward geocoding, or 'lat,lng' coordinates for reverse geocoding.\"),\n abbrv: z.number().int().describe(\"Use abbreviated address fields: 1 to enable, 0 to disable.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10.\").optional(),\n bounds: z.string().describe(\"Restrict results to bounding box as 'min_lng,min_lat,max_lng,max_lat'.\").optional(),\n pretty: z.boolean().default(false).describe(\"Pretty-print the JSON response for readability.\").optional(),\n language: z.string().describe(\"Preferred response language as IETF language tag (e.g., 'en', 'de', 'fr').\").optional(),\n roadinfo: z.boolean().default(false).describe(\"Include detailed road/driving information in annotations.\").optional(),\n proximity: z.string().describe(\"Bias results toward a location as 'lat,lng' (e.g., '52.5200,13.4050').\").optional(),\n add_request: z.boolean().default(false).describe(\"Include original request parameters in the response.\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries. Comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us', 'de,fr').\").optional(),\n address_only: z.boolean().default(false).describe(\"Return only address-type results (exclude POIs, landmarks).\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level for results (1-10). Only results with confidence >= this value are returned.\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude detailed annotations (timezone, currency, sun times, etc.) from response.\").optional(),\n}).describe(\"Request parameters for geocoding to GeoJSON format.\\nSupports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).\");\nconst OpencageGeocodeGeojson_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum requests allowed per day.\").nullable(),\n reset: z.number().int().describe(\"UNIX timestamp when limit resets.\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests today.\").nullable(),\n}).passthrough().describe(\"API rate limit information.\");\nconst OpencageGeocodeGeojson_StatusSchema = z.object({\n code: z.number().int().describe(\"HTTP-like status code (200=OK, 400=invalid, etc.).\").nullable(),\n message: z.string().describe(\"Status message.\").nullable(),\n}).passthrough().describe(\"API response status.\");\nconst OpencageGeocodeGeojson_GeometrySchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type, always 'Point' for geocoding results.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON Point geometry.\");\nconst OpencageGeocodeGeojson_BoundsSchema = z.object({\n northeast: z.record(z.string(), z.unknown()).describe(\"Northeast corner with 'lat' and 'lng'.\"),\n southwest: z.record(z.string(), z.unknown()).describe(\"Southwest corner with 'lat' and 'lng'.\"),\n}).passthrough().describe(\"Geographic bounding box.\");\nconst OpencageGeocodeGeojson_AnnotationDMSSchema = z.object({\n lat: z.string().describe(\"Latitude in DMS format (e.g., \\\"52° 31' 2.59860'' N\\\").\").nullable(),\n lng: z.string().describe(\"Longitude in DMS format (e.g., \\\"13° 23' 42.47124'' E\\\").\").nullable(),\n}).passthrough().describe(\"Coordinates in Degrees Minutes Seconds format.\");\nconst OpencageGeocodeGeojson_AnnotationOSMSchema = z.object({\n url: z.string().describe(\"URL to view this location on OpenStreetMap.\").nullable().optional(),\n edit_url: z.string().describe(\"URL to edit this location on OpenStreetMap.\").nullable().optional(),\n note_url: z.string().describe(\"URL to add a note at this location.\").nullable().optional(),\n}).passthrough().describe(\"OpenStreetMap links.\");\nconst OpencageGeocodeGeojson_SunTimesSchema = z.object({\n civil: z.number().int().describe(\"Civil twilight time (UNIX timestamp).\").nullable(),\n apparent: z.number().int().describe(\"Apparent sunrise/sunset time (UNIX timestamp).\").nullable(),\n nautical: z.number().int().describe(\"Nautical twilight time (UNIX timestamp).\").nullable(),\n astronomical: z.number().int().describe(\"Astronomical twilight time (UNIX timestamp).\").nullable(),\n}).passthrough().describe(\"Sun timing information with different twilight types.\");\nconst OpencageGeocodeGeojson_AnnotationSunSchema = z.object({\n set: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n rise: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n}).passthrough().describe(\"Sunrise and sunset times for the location.\");\nconst OpencageGeocodeGeojson_AnnotationMercatorSchema = z.object({\n x: z.number().describe(\"Mercator x-coordinate (easting).\").nullable(),\n y: z.number().describe(\"Mercator y-coordinate (northing).\").nullable(),\n}).passthrough().describe(\"Coordinates in Web Mercator projection (EPSG:3857).\");\nconst OpencageGeocodeGeojson_AnnotationCurrencySchema = z.object({\n name: z.string().describe(\"Currency name (e.g., 'Euro').\").nullable(),\n symbol: z.string().describe(\"Currency symbol (e.g., '€').\").nullable(),\n subunit: z.string().describe(\"Name of the subunit (e.g., 'Cent').\").nullable().optional(),\n iso_code: z.string().describe(\"ISO 4217 currency code (e.g., 'EUR').\").nullable(),\n html_entity: z.string().describe(\"HTML entity for the currency symbol.\").nullable().optional(),\n iso_numeric: z.string().describe(\"ISO 4217 numeric code.\").nullable().optional(),\n decimal_mark: z.string().describe(\"Decimal separator character.\").nullable().optional(),\n symbol_first: z.number().int().describe(\"Whether symbol appears before amount (1) or after (0).\").nullable().optional(),\n subunit_to_unit: z.number().int().describe(\"Number of subunits in one unit.\").nullable().optional(),\n alternate_symbols: z.array(z.string()).describe(\"Alternative currency symbols.\").nullable().optional(),\n thousands_separator: z.string().describe(\"Thousands separator character.\").nullable().optional(),\n smallest_denomination: z.number().int().describe(\"Smallest physical denomination.\").nullable().optional(),\n}).passthrough().describe(\"Currency information for the location's country.\");\nconst OpencageGeocodeGeojson_AnnotationRoadInfoSchema = z.object({\n road: z.string().describe(\"Road name if available.\").nullable().optional(),\n drive_on: z.string().describe(\"Side of road for driving ('left' or 'right').\").nullable(),\n speed_in: z.string().describe(\"Speed unit used ('km/h' or 'mph').\").nullable(),\n road_type: z.string().describe(\"Type of road.\").nullable().optional(),\n}).passthrough().describe(\"Road and driving information.\");\nconst OpencageGeocodeGeojson_AnnotationTimezoneSchema = z.object({\n name: z.string().describe(\"IANA timezone name (e.g., 'Europe/Berlin').\").nullable(),\n now_in_dst: z.number().int().describe(\"Whether currently in DST (1) or not (0).\").nullable(),\n offset_sec: z.number().int().describe(\"UTC offset in seconds.\").nullable(),\n short_name: z.string().describe(\"Timezone abbreviation (e.g., 'CET').\").nullable(),\n offset_string: z.string().describe(\"UTC offset as string (e.g., '+0100').\").nullable(),\n}).passthrough().describe(\"Timezone information.\");\nconst OpencageGeocodeGeojson_AnnotationsSchema = z.object({\n DMS: OpencageGeocodeGeojson_AnnotationDMSSchema.nullable().optional(),\n OSM: OpencageGeocodeGeojson_AnnotationOSMSchema.nullable().optional(),\n sun: OpencageGeocodeGeojson_AnnotationSunSchema.nullable().optional(),\n MGRS: z.string().describe(\"Military Grid Reference System coordinate.\").nullable().optional(),\n NUTS: z.record(z.string(), z.unknown()).describe(\"EU NUTS region codes.\").nullable().optional(),\n flag: z.string().describe(\"Country flag emoji.\").nullable().optional(),\n qibla: z.number().describe(\"Direction to Mecca in degrees.\").nullable().optional(),\n UN_M49: z.record(z.string(), z.unknown()).describe(\"UN M49 region codes.\").nullable().optional(),\n geohash: z.string().describe(\"Geohash of the location.\").nullable().optional(),\n Mercator: OpencageGeocodeGeojson_AnnotationMercatorSchema.nullable().optional(),\n currency: OpencageGeocodeGeojson_AnnotationCurrencySchema.nullable().optional(),\n roadinfo: OpencageGeocodeGeojson_AnnotationRoadInfoSchema.nullable().optional(),\n timezone: OpencageGeocodeGeojson_AnnotationTimezoneSchema.nullable().optional(),\n wikidata: z.string().describe(\"Wikidata identifier.\").nullable().optional(),\n Maidenhead: z.string().describe(\"Maidenhead (amateur radio) grid locator.\").nullable().optional(),\n what3words: z.record(z.string(), z.unknown()).describe(\"What3Words address.\").nullable().optional(),\n callingcode: z.number().int().describe(\"International calling code.\").nullable().optional(),\n}).passthrough().describe(\"Additional geographic annotations for a result. All fields are optional as they depend on API parameters.\");\nconst OpencageGeocodeGeojson_FeaturePropertiesSchema = z.object({\n bounds: OpencageGeocodeGeojson_BoundsSchema.nullable().optional(),\n formatted: z.string().describe(\"Fully formatted address string.\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Structured address components (country, city, street, etc.).\"),\n confidence: z.number().int().describe(\"Confidence score (1-10) for this result.\").nullable(),\n annotations: OpencageGeocodeGeojson_AnnotationsSchema.nullable().optional(),\n}).passthrough().describe(\"Properties of a GeoJSON feature from geocoding.\");\nconst OpencageGeocodeGeojson_FeatureSchema = z.object({\n type: z.string().describe(\"GeoJSON type, always 'Feature'.\").nullable(),\n geometry: OpencageGeocodeGeojson_GeometrySchema.nullable(),\n properties: OpencageGeocodeGeojson_FeaturePropertiesSchema.nullable(),\n}).passthrough().describe(\"GeoJSON Feature representing a geocoding result.\");\nconst OpencageGeocodeGeojson_LicenseSchema = z.object({\n url: z.string().describe(\"URL to license details.\").nullable(),\n name: z.string().describe(\"License name.\").nullable(),\n}).passthrough().describe(\"Data license information.\");\nconst OpencageGeocodeGeojson_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp in HTTP date format.\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp as UNIX epoch seconds.\").nullable(),\n}).passthrough().describe(\"Response timestamp.\");\nconst OpencageGeocodeGeojson_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL.\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon profile URL.\").nullable().optional(),\n}).passthrough().describe(\"Links to stay informed about the API.\");\nexport const OpencageGeocodeGeojsonOutput = z.object({\n rate: OpencageGeocodeGeojson_RateSchema.nullable().optional(),\n type: z.string().describe(\"GeoJSON type, always 'FeatureCollection'.\").nullable(),\n status: OpencageGeocodeGeojson_StatusSchema.nullable().optional(),\n thanks: z.string().describe(\"Thank you message from API.\").nullable().optional(),\n features: z.array(OpencageGeocodeGeojson_FeatureSchema).describe(\"List of geocoding results as GeoJSON features.\"),\n licenses: z.array(OpencageGeocodeGeojson_LicenseSchema).describe(\"Data license information.\"),\n timestamp: OpencageGeocodeGeojson_TimestampSchema.nullable().optional(),\n documentation: z.string().describe(\"Link to API documentation.\").nullable().optional(),\n stay_informed: OpencageGeocodeGeojson_StayInformedSchema.nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results returned.\").nullable().optional(),\n}).passthrough().describe(\"GeoJSON FeatureCollection response from OpenCage geocoding API.\\nContains geocoding results as GeoJSON features with rich metadata.\");\n\nexport const opencageGeocodeGeojson: AppAction<\n typeof OpencageGeocodeGeojsonInput,\n typeof OpencageGeocodeGeojsonOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_GEOJSON\", {\n slug: \"opencage-geocode-geojson\",\n name: \"Geocode to GeoJSON\",\n description: \"Geocode addresses or coordinates and return results in GeoJSON FeatureCollection format. Use this tool when you need: - Geographic data in standard GeoJSON format for mapping applications - Forward geocoding: convert addresses to coordinates - Reverse geocoding: convert coordinates to addresses The response includes coordinates, formatted addresses, and optional annotations like timezone, currency, and sun times for each location.\",\n input: OpencageGeocodeGeojsonInput,\n output: OpencageGeocodeGeojsonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,GAA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,CAAC,SAAS;CACrF,eAAe,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI;AAE/J,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { opencage } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/geocode-geojson.d.ts
|
|
@@ -125,33 +127,7 @@ declare const OpencageGeocodeGeojsonOutput: z.ZodObject<{
|
|
|
125
127
|
}, z.core.$loose>>>;
|
|
126
128
|
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
127
129
|
}, z.core.$loose>;
|
|
128
|
-
declare const opencageGeocodeGeojson:
|
|
129
|
-
q: string;
|
|
130
|
-
abbrv?: number | undefined;
|
|
131
|
-
limit?: number | undefined;
|
|
132
|
-
bounds?: string | undefined;
|
|
133
|
-
pretty?: boolean | undefined;
|
|
134
|
-
language?: string | undefined;
|
|
135
|
-
roadinfo?: boolean | undefined;
|
|
136
|
-
proximity?: string | undefined;
|
|
137
|
-
add_request?: boolean | undefined;
|
|
138
|
-
countrycode?: string | undefined;
|
|
139
|
-
address_only?: boolean | undefined;
|
|
140
|
-
min_confidence?: number | undefined;
|
|
141
|
-
no_annotations?: boolean | undefined;
|
|
142
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
143
|
-
connectionId: z.ZodString;
|
|
144
|
-
entityId: z.ZodString;
|
|
145
|
-
instanceId: z.ZodString;
|
|
146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
-
generic_key: z.ZodString;
|
|
148
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
149
|
-
connectionId: z.ZodString;
|
|
150
|
-
entityId: z.ZodString;
|
|
151
|
-
instanceId: z.ZodString;
|
|
152
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
-
generic_key: z.ZodString;
|
|
154
|
-
}, z.core.$strip>>]>;
|
|
130
|
+
declare const opencageGeocodeGeojson: AppAction<typeof OpencageGeocodeGeojsonInput, typeof OpencageGeocodeGeojsonOutput, typeof opencage.credential>;
|
|
155
131
|
//#endregion
|
|
156
132
|
export { opencageGeocodeGeojson };
|
|
157
133
|
//# sourceMappingURL=geocode-geojson.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-geojson.d.cts","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geocode-geojson.d.cts","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cA6H3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAa5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { opencage } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/geocode-geojson.d.ts
|
|
@@ -125,33 +127,7 @@ declare const OpencageGeocodeGeojsonOutput: z.ZodObject<{
|
|
|
125
127
|
}, z.core.$loose>>>;
|
|
126
128
|
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
127
129
|
}, z.core.$loose>;
|
|
128
|
-
declare const opencageGeocodeGeojson:
|
|
129
|
-
q: string;
|
|
130
|
-
abbrv?: number | undefined;
|
|
131
|
-
limit?: number | undefined;
|
|
132
|
-
bounds?: string | undefined;
|
|
133
|
-
pretty?: boolean | undefined;
|
|
134
|
-
language?: string | undefined;
|
|
135
|
-
roadinfo?: boolean | undefined;
|
|
136
|
-
proximity?: string | undefined;
|
|
137
|
-
add_request?: boolean | undefined;
|
|
138
|
-
countrycode?: string | undefined;
|
|
139
|
-
address_only?: boolean | undefined;
|
|
140
|
-
min_confidence?: number | undefined;
|
|
141
|
-
no_annotations?: boolean | undefined;
|
|
142
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
143
|
-
connectionId: z.ZodString;
|
|
144
|
-
entityId: z.ZodString;
|
|
145
|
-
instanceId: z.ZodString;
|
|
146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
-
generic_key: z.ZodString;
|
|
148
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
149
|
-
connectionId: z.ZodString;
|
|
150
|
-
entityId: z.ZodString;
|
|
151
|
-
instanceId: z.ZodString;
|
|
152
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
-
generic_key: z.ZodString;
|
|
154
|
-
}, z.core.$strip>>]>;
|
|
130
|
+
declare const opencageGeocodeGeojson: AppAction<typeof OpencageGeocodeGeojsonInput, typeof OpencageGeocodeGeojsonOutput, typeof opencage.credential>;
|
|
155
131
|
//#endregion
|
|
156
132
|
export { opencageGeocodeGeojson };
|
|
157
133
|
//# sourceMappingURL=geocode-geojson.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-geojson.d.mts","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geocode-geojson.d.mts","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cA6H3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAa5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-geojson.mjs","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeGeojsonInput = z.object({\n q: z.string().describe(\"Query string: either an address/placename for forward geocoding, or 'lat,lng' coordinates for reverse geocoding.\"),\n abbrv: z.number().int().describe(\"Use abbreviated address fields: 1 to enable, 0 to disable.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10.\").optional(),\n bounds: z.string().describe(\"Restrict results to bounding box as 'min_lng,min_lat,max_lng,max_lat'.\").optional(),\n pretty: z.boolean().default(false).describe(\"Pretty-print the JSON response for readability.\").optional(),\n language: z.string().describe(\"Preferred response language as IETF language tag (e.g., 'en', 'de', 'fr').\").optional(),\n roadinfo: z.boolean().default(false).describe(\"Include detailed road/driving information in annotations.\").optional(),\n proximity: z.string().describe(\"Bias results toward a location as 'lat,lng' (e.g., '52.5200,13.4050').\").optional(),\n add_request: z.boolean().default(false).describe(\"Include original request parameters in the response.\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries. Comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us', 'de,fr').\").optional(),\n address_only: z.boolean().default(false).describe(\"Return only address-type results (exclude POIs, landmarks).\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level for results (1-10). Only results with confidence >= this value are returned.\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude detailed annotations (timezone, currency, sun times, etc.) from response.\").optional(),\n}).describe(\"Request parameters for geocoding to GeoJSON format.\\nSupports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).\");\nconst OpencageGeocodeGeojson_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum requests allowed per day.\").nullable(),\n reset: z.number().int().describe(\"UNIX timestamp when limit resets.\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests today.\").nullable(),\n}).passthrough().describe(\"API rate limit information.\");\nconst OpencageGeocodeGeojson_StatusSchema = z.object({\n code: z.number().int().describe(\"HTTP-like status code (200=OK, 400=invalid, etc.).\").nullable(),\n message: z.string().describe(\"Status message.\").nullable(),\n}).passthrough().describe(\"API response status.\");\nconst OpencageGeocodeGeojson_GeometrySchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type, always 'Point' for geocoding results.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON Point geometry.\");\nconst OpencageGeocodeGeojson_BoundsSchema = z.object({\n northeast: z.record(z.string(), z.unknown()).describe(\"Northeast corner with 'lat' and 'lng'.\"),\n southwest: z.record(z.string(), z.unknown()).describe(\"Southwest corner with 'lat' and 'lng'.\"),\n}).passthrough().describe(\"Geographic bounding box.\");\nconst OpencageGeocodeGeojson_AnnotationDMSSchema = z.object({\n lat: z.string().describe(\"Latitude in DMS format (e.g., \\\"52° 31' 2.59860'' N\\\").\").nullable(),\n lng: z.string().describe(\"Longitude in DMS format (e.g., \\\"13° 23' 42.47124'' E\\\").\").nullable(),\n}).passthrough().describe(\"Coordinates in Degrees Minutes Seconds format.\");\nconst OpencageGeocodeGeojson_AnnotationOSMSchema = z.object({\n url: z.string().describe(\"URL to view this location on OpenStreetMap.\").nullable().optional(),\n edit_url: z.string().describe(\"URL to edit this location on OpenStreetMap.\").nullable().optional(),\n note_url: z.string().describe(\"URL to add a note at this location.\").nullable().optional(),\n}).passthrough().describe(\"OpenStreetMap links.\");\nconst OpencageGeocodeGeojson_SunTimesSchema = z.object({\n civil: z.number().int().describe(\"Civil twilight time (UNIX timestamp).\").nullable(),\n apparent: z.number().int().describe(\"Apparent sunrise/sunset time (UNIX timestamp).\").nullable(),\n nautical: z.number().int().describe(\"Nautical twilight time (UNIX timestamp).\").nullable(),\n astronomical: z.number().int().describe(\"Astronomical twilight time (UNIX timestamp).\").nullable(),\n}).passthrough().describe(\"Sun timing information with different twilight types.\");\nconst OpencageGeocodeGeojson_AnnotationSunSchema = z.object({\n set: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n rise: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n}).passthrough().describe(\"Sunrise and sunset times for the location.\");\nconst OpencageGeocodeGeojson_AnnotationMercatorSchema = z.object({\n x: z.number().describe(\"Mercator x-coordinate (easting).\").nullable(),\n y: z.number().describe(\"Mercator y-coordinate (northing).\").nullable(),\n}).passthrough().describe(\"Coordinates in Web Mercator projection (EPSG:3857).\");\nconst OpencageGeocodeGeojson_AnnotationCurrencySchema = z.object({\n name: z.string().describe(\"Currency name (e.g., 'Euro').\").nullable(),\n symbol: z.string().describe(\"Currency symbol (e.g., '€').\").nullable(),\n subunit: z.string().describe(\"Name of the subunit (e.g., 'Cent').\").nullable().optional(),\n iso_code: z.string().describe(\"ISO 4217 currency code (e.g., 'EUR').\").nullable(),\n html_entity: z.string().describe(\"HTML entity for the currency symbol.\").nullable().optional(),\n iso_numeric: z.string().describe(\"ISO 4217 numeric code.\").nullable().optional(),\n decimal_mark: z.string().describe(\"Decimal separator character.\").nullable().optional(),\n symbol_first: z.number().int().describe(\"Whether symbol appears before amount (1) or after (0).\").nullable().optional(),\n subunit_to_unit: z.number().int().describe(\"Number of subunits in one unit.\").nullable().optional(),\n alternate_symbols: z.array(z.string()).describe(\"Alternative currency symbols.\").nullable().optional(),\n thousands_separator: z.string().describe(\"Thousands separator character.\").nullable().optional(),\n smallest_denomination: z.number().int().describe(\"Smallest physical denomination.\").nullable().optional(),\n}).passthrough().describe(\"Currency information for the location's country.\");\nconst OpencageGeocodeGeojson_AnnotationRoadInfoSchema = z.object({\n road: z.string().describe(\"Road name if available.\").nullable().optional(),\n drive_on: z.string().describe(\"Side of road for driving ('left' or 'right').\").nullable(),\n speed_in: z.string().describe(\"Speed unit used ('km/h' or 'mph').\").nullable(),\n road_type: z.string().describe(\"Type of road.\").nullable().optional(),\n}).passthrough().describe(\"Road and driving information.\");\nconst OpencageGeocodeGeojson_AnnotationTimezoneSchema = z.object({\n name: z.string().describe(\"IANA timezone name (e.g., 'Europe/Berlin').\").nullable(),\n now_in_dst: z.number().int().describe(\"Whether currently in DST (1) or not (0).\").nullable(),\n offset_sec: z.number().int().describe(\"UTC offset in seconds.\").nullable(),\n short_name: z.string().describe(\"Timezone abbreviation (e.g., 'CET').\").nullable(),\n offset_string: z.string().describe(\"UTC offset as string (e.g., '+0100').\").nullable(),\n}).passthrough().describe(\"Timezone information.\");\nconst OpencageGeocodeGeojson_AnnotationsSchema = z.object({\n DMS: OpencageGeocodeGeojson_AnnotationDMSSchema.nullable().optional(),\n OSM: OpencageGeocodeGeojson_AnnotationOSMSchema.nullable().optional(),\n sun: OpencageGeocodeGeojson_AnnotationSunSchema.nullable().optional(),\n MGRS: z.string().describe(\"Military Grid Reference System coordinate.\").nullable().optional(),\n NUTS: z.record(z.string(), z.unknown()).describe(\"EU NUTS region codes.\").nullable().optional(),\n flag: z.string().describe(\"Country flag emoji.\").nullable().optional(),\n qibla: z.number().describe(\"Direction to Mecca in degrees.\").nullable().optional(),\n UN_M49: z.record(z.string(), z.unknown()).describe(\"UN M49 region codes.\").nullable().optional(),\n geohash: z.string().describe(\"Geohash of the location.\").nullable().optional(),\n Mercator: OpencageGeocodeGeojson_AnnotationMercatorSchema.nullable().optional(),\n currency: OpencageGeocodeGeojson_AnnotationCurrencySchema.nullable().optional(),\n roadinfo: OpencageGeocodeGeojson_AnnotationRoadInfoSchema.nullable().optional(),\n timezone: OpencageGeocodeGeojson_AnnotationTimezoneSchema.nullable().optional(),\n wikidata: z.string().describe(\"Wikidata identifier.\").nullable().optional(),\n Maidenhead: z.string().describe(\"Maidenhead (amateur radio) grid locator.\").nullable().optional(),\n what3words: z.record(z.string(), z.unknown()).describe(\"What3Words address.\").nullable().optional(),\n callingcode: z.number().int().describe(\"International calling code.\").nullable().optional(),\n}).passthrough().describe(\"Additional geographic annotations for a result. All fields are optional as they depend on API parameters.\");\nconst OpencageGeocodeGeojson_FeaturePropertiesSchema = z.object({\n bounds: OpencageGeocodeGeojson_BoundsSchema.nullable().optional(),\n formatted: z.string().describe(\"Fully formatted address string.\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Structured address components (country, city, street, etc.).\"),\n confidence: z.number().int().describe(\"Confidence score (1-10) for this result.\").nullable(),\n annotations: OpencageGeocodeGeojson_AnnotationsSchema.nullable().optional(),\n}).passthrough().describe(\"Properties of a GeoJSON feature from geocoding.\");\nconst OpencageGeocodeGeojson_FeatureSchema = z.object({\n type: z.string().describe(\"GeoJSON type, always 'Feature'.\").nullable(),\n geometry: OpencageGeocodeGeojson_GeometrySchema.nullable(),\n properties: OpencageGeocodeGeojson_FeaturePropertiesSchema.nullable(),\n}).passthrough().describe(\"GeoJSON Feature representing a geocoding result.\");\nconst OpencageGeocodeGeojson_LicenseSchema = z.object({\n url: z.string().describe(\"URL to license details.\").nullable(),\n name: z.string().describe(\"License name.\").nullable(),\n}).passthrough().describe(\"Data license information.\");\nconst OpencageGeocodeGeojson_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp in HTTP date format.\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp as UNIX epoch seconds.\").nullable(),\n}).passthrough().describe(\"Response timestamp.\");\nconst OpencageGeocodeGeojson_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL.\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon profile URL.\").nullable().optional(),\n}).passthrough().describe(\"Links to stay informed about the API.\");\nexport const OpencageGeocodeGeojsonOutput = z.object({\n rate: OpencageGeocodeGeojson_RateSchema.nullable().optional(),\n type: z.string().describe(\"GeoJSON type, always 'FeatureCollection'.\").nullable(),\n status: OpencageGeocodeGeojson_StatusSchema.nullable().optional(),\n thanks: z.string().describe(\"Thank you message from API.\").nullable().optional(),\n features: z.array(OpencageGeocodeGeojson_FeatureSchema).describe(\"List of geocoding results as GeoJSON features.\"),\n licenses: z.array(OpencageGeocodeGeojson_LicenseSchema).describe(\"Data license information.\"),\n timestamp: OpencageGeocodeGeojson_TimestampSchema.nullable().optional(),\n documentation: z.string().describe(\"Link to API documentation.\").nullable().optional(),\n stay_informed: OpencageGeocodeGeojson_StayInformedSchema.nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results returned.\").nullable().optional(),\n}).passthrough().describe(\"GeoJSON FeatureCollection response from OpenCage geocoding API.\\nContains geocoding results as GeoJSON features with rich metadata.\");\n\nexport const opencageGeocodeGeojson = action(\"OPENCAGE_GEOCODE_GEOJSON\", {\n slug: \"opencage-geocode-geojson\",\n name: \"Geocode to GeoJSON\",\n description: \"Geocode addresses or coordinates and return results in GeoJSON FeatureCollection format. Use this tool when you need: - Geographic data in standard GeoJSON format for mapping applications - Forward geocoding: convert addresses to coordinates - Reverse geocoding: convert coordinates to addresses The response includes coordinates, formatted addresses, and optional annotations like timezone, currency, and sun times for each location.\",\n input: OpencageGeocodeGeojsonInput,\n output: OpencageGeocodeGeojsonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACzI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,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EAC/E,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gDAAgD;EACjH,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,2BAA2B;EAC5F,WAAW,uCAAuC,SAAS,CAAC,CAAC,SAAS;EACtE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,eAAe,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"geocode-geojson.mjs","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeGeojsonInput = z.object({\n q: z.string().describe(\"Query string: either an address/placename for forward geocoding, or 'lat,lng' coordinates for reverse geocoding.\"),\n abbrv: z.number().int().describe(\"Use abbreviated address fields: 1 to enable, 0 to disable.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10.\").optional(),\n bounds: z.string().describe(\"Restrict results to bounding box as 'min_lng,min_lat,max_lng,max_lat'.\").optional(),\n pretty: z.boolean().default(false).describe(\"Pretty-print the JSON response for readability.\").optional(),\n language: z.string().describe(\"Preferred response language as IETF language tag (e.g., 'en', 'de', 'fr').\").optional(),\n roadinfo: z.boolean().default(false).describe(\"Include detailed road/driving information in annotations.\").optional(),\n proximity: z.string().describe(\"Bias results toward a location as 'lat,lng' (e.g., '52.5200,13.4050').\").optional(),\n add_request: z.boolean().default(false).describe(\"Include original request parameters in the response.\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries. Comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us', 'de,fr').\").optional(),\n address_only: z.boolean().default(false).describe(\"Return only address-type results (exclude POIs, landmarks).\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level for results (1-10). Only results with confidence >= this value are returned.\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude detailed annotations (timezone, currency, sun times, etc.) from response.\").optional(),\n}).describe(\"Request parameters for geocoding to GeoJSON format.\\nSupports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).\");\nconst OpencageGeocodeGeojson_RateSchema = z.object({\n limit: z.number().int().describe(\"Maximum requests allowed per day.\").nullable(),\n reset: z.number().int().describe(\"UNIX timestamp when limit resets.\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests today.\").nullable(),\n}).passthrough().describe(\"API rate limit information.\");\nconst OpencageGeocodeGeojson_StatusSchema = z.object({\n code: z.number().int().describe(\"HTTP-like status code (200=OK, 400=invalid, etc.).\").nullable(),\n message: z.string().describe(\"Status message.\").nullable(),\n}).passthrough().describe(\"API response status.\");\nconst OpencageGeocodeGeojson_GeometrySchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type, always 'Point' for geocoding results.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON Point geometry.\");\nconst OpencageGeocodeGeojson_BoundsSchema = z.object({\n northeast: z.record(z.string(), z.unknown()).describe(\"Northeast corner with 'lat' and 'lng'.\"),\n southwest: z.record(z.string(), z.unknown()).describe(\"Southwest corner with 'lat' and 'lng'.\"),\n}).passthrough().describe(\"Geographic bounding box.\");\nconst OpencageGeocodeGeojson_AnnotationDMSSchema = z.object({\n lat: z.string().describe(\"Latitude in DMS format (e.g., \\\"52° 31' 2.59860'' N\\\").\").nullable(),\n lng: z.string().describe(\"Longitude in DMS format (e.g., \\\"13° 23' 42.47124'' E\\\").\").nullable(),\n}).passthrough().describe(\"Coordinates in Degrees Minutes Seconds format.\");\nconst OpencageGeocodeGeojson_AnnotationOSMSchema = z.object({\n url: z.string().describe(\"URL to view this location on OpenStreetMap.\").nullable().optional(),\n edit_url: z.string().describe(\"URL to edit this location on OpenStreetMap.\").nullable().optional(),\n note_url: z.string().describe(\"URL to add a note at this location.\").nullable().optional(),\n}).passthrough().describe(\"OpenStreetMap links.\");\nconst OpencageGeocodeGeojson_SunTimesSchema = z.object({\n civil: z.number().int().describe(\"Civil twilight time (UNIX timestamp).\").nullable(),\n apparent: z.number().int().describe(\"Apparent sunrise/sunset time (UNIX timestamp).\").nullable(),\n nautical: z.number().int().describe(\"Nautical twilight time (UNIX timestamp).\").nullable(),\n astronomical: z.number().int().describe(\"Astronomical twilight time (UNIX timestamp).\").nullable(),\n}).passthrough().describe(\"Sun timing information with different twilight types.\");\nconst OpencageGeocodeGeojson_AnnotationSunSchema = z.object({\n set: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n rise: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n}).passthrough().describe(\"Sunrise and sunset times for the location.\");\nconst OpencageGeocodeGeojson_AnnotationMercatorSchema = z.object({\n x: z.number().describe(\"Mercator x-coordinate (easting).\").nullable(),\n y: z.number().describe(\"Mercator y-coordinate (northing).\").nullable(),\n}).passthrough().describe(\"Coordinates in Web Mercator projection (EPSG:3857).\");\nconst OpencageGeocodeGeojson_AnnotationCurrencySchema = z.object({\n name: z.string().describe(\"Currency name (e.g., 'Euro').\").nullable(),\n symbol: z.string().describe(\"Currency symbol (e.g., '€').\").nullable(),\n subunit: z.string().describe(\"Name of the subunit (e.g., 'Cent').\").nullable().optional(),\n iso_code: z.string().describe(\"ISO 4217 currency code (e.g., 'EUR').\").nullable(),\n html_entity: z.string().describe(\"HTML entity for the currency symbol.\").nullable().optional(),\n iso_numeric: z.string().describe(\"ISO 4217 numeric code.\").nullable().optional(),\n decimal_mark: z.string().describe(\"Decimal separator character.\").nullable().optional(),\n symbol_first: z.number().int().describe(\"Whether symbol appears before amount (1) or after (0).\").nullable().optional(),\n subunit_to_unit: z.number().int().describe(\"Number of subunits in one unit.\").nullable().optional(),\n alternate_symbols: z.array(z.string()).describe(\"Alternative currency symbols.\").nullable().optional(),\n thousands_separator: z.string().describe(\"Thousands separator character.\").nullable().optional(),\n smallest_denomination: z.number().int().describe(\"Smallest physical denomination.\").nullable().optional(),\n}).passthrough().describe(\"Currency information for the location's country.\");\nconst OpencageGeocodeGeojson_AnnotationRoadInfoSchema = z.object({\n road: z.string().describe(\"Road name if available.\").nullable().optional(),\n drive_on: z.string().describe(\"Side of road for driving ('left' or 'right').\").nullable(),\n speed_in: z.string().describe(\"Speed unit used ('km/h' or 'mph').\").nullable(),\n road_type: z.string().describe(\"Type of road.\").nullable().optional(),\n}).passthrough().describe(\"Road and driving information.\");\nconst OpencageGeocodeGeojson_AnnotationTimezoneSchema = z.object({\n name: z.string().describe(\"IANA timezone name (e.g., 'Europe/Berlin').\").nullable(),\n now_in_dst: z.number().int().describe(\"Whether currently in DST (1) or not (0).\").nullable(),\n offset_sec: z.number().int().describe(\"UTC offset in seconds.\").nullable(),\n short_name: z.string().describe(\"Timezone abbreviation (e.g., 'CET').\").nullable(),\n offset_string: z.string().describe(\"UTC offset as string (e.g., '+0100').\").nullable(),\n}).passthrough().describe(\"Timezone information.\");\nconst OpencageGeocodeGeojson_AnnotationsSchema = z.object({\n DMS: OpencageGeocodeGeojson_AnnotationDMSSchema.nullable().optional(),\n OSM: OpencageGeocodeGeojson_AnnotationOSMSchema.nullable().optional(),\n sun: OpencageGeocodeGeojson_AnnotationSunSchema.nullable().optional(),\n MGRS: z.string().describe(\"Military Grid Reference System coordinate.\").nullable().optional(),\n NUTS: z.record(z.string(), z.unknown()).describe(\"EU NUTS region codes.\").nullable().optional(),\n flag: z.string().describe(\"Country flag emoji.\").nullable().optional(),\n qibla: z.number().describe(\"Direction to Mecca in degrees.\").nullable().optional(),\n UN_M49: z.record(z.string(), z.unknown()).describe(\"UN M49 region codes.\").nullable().optional(),\n geohash: z.string().describe(\"Geohash of the location.\").nullable().optional(),\n Mercator: OpencageGeocodeGeojson_AnnotationMercatorSchema.nullable().optional(),\n currency: OpencageGeocodeGeojson_AnnotationCurrencySchema.nullable().optional(),\n roadinfo: OpencageGeocodeGeojson_AnnotationRoadInfoSchema.nullable().optional(),\n timezone: OpencageGeocodeGeojson_AnnotationTimezoneSchema.nullable().optional(),\n wikidata: z.string().describe(\"Wikidata identifier.\").nullable().optional(),\n Maidenhead: z.string().describe(\"Maidenhead (amateur radio) grid locator.\").nullable().optional(),\n what3words: z.record(z.string(), z.unknown()).describe(\"What3Words address.\").nullable().optional(),\n callingcode: z.number().int().describe(\"International calling code.\").nullable().optional(),\n}).passthrough().describe(\"Additional geographic annotations for a result. All fields are optional as they depend on API parameters.\");\nconst OpencageGeocodeGeojson_FeaturePropertiesSchema = z.object({\n bounds: OpencageGeocodeGeojson_BoundsSchema.nullable().optional(),\n formatted: z.string().describe(\"Fully formatted address string.\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Structured address components (country, city, street, etc.).\"),\n confidence: z.number().int().describe(\"Confidence score (1-10) for this result.\").nullable(),\n annotations: OpencageGeocodeGeojson_AnnotationsSchema.nullable().optional(),\n}).passthrough().describe(\"Properties of a GeoJSON feature from geocoding.\");\nconst OpencageGeocodeGeojson_FeatureSchema = z.object({\n type: z.string().describe(\"GeoJSON type, always 'Feature'.\").nullable(),\n geometry: OpencageGeocodeGeojson_GeometrySchema.nullable(),\n properties: OpencageGeocodeGeojson_FeaturePropertiesSchema.nullable(),\n}).passthrough().describe(\"GeoJSON Feature representing a geocoding result.\");\nconst OpencageGeocodeGeojson_LicenseSchema = z.object({\n url: z.string().describe(\"URL to license details.\").nullable(),\n name: z.string().describe(\"License name.\").nullable(),\n}).passthrough().describe(\"Data license information.\");\nconst OpencageGeocodeGeojson_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp in HTTP date format.\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp as UNIX epoch seconds.\").nullable(),\n}).passthrough().describe(\"Response timestamp.\");\nconst OpencageGeocodeGeojson_StayInformedSchema = z.object({\n blog: z.string().describe(\"Blog URL.\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon profile URL.\").nullable().optional(),\n}).passthrough().describe(\"Links to stay informed about the API.\");\nexport const OpencageGeocodeGeojsonOutput = z.object({\n rate: OpencageGeocodeGeojson_RateSchema.nullable().optional(),\n type: z.string().describe(\"GeoJSON type, always 'FeatureCollection'.\").nullable(),\n status: OpencageGeocodeGeojson_StatusSchema.nullable().optional(),\n thanks: z.string().describe(\"Thank you message from API.\").nullable().optional(),\n features: z.array(OpencageGeocodeGeojson_FeatureSchema).describe(\"List of geocoding results as GeoJSON features.\"),\n licenses: z.array(OpencageGeocodeGeojson_LicenseSchema).describe(\"Data license information.\"),\n timestamp: OpencageGeocodeGeojson_TimestampSchema.nullable().optional(),\n documentation: z.string().describe(\"Link to API documentation.\").nullable().optional(),\n stay_informed: OpencageGeocodeGeojson_StayInformedSchema.nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results returned.\").nullable().optional(),\n}).passthrough().describe(\"GeoJSON FeatureCollection response from OpenCage geocoding API.\\nContains geocoding results as GeoJSON features with rich metadata.\");\n\nexport const opencageGeocodeGeojson: AppAction<\n typeof OpencageGeocodeGeojsonInput,\n typeof OpencageGeocodeGeojsonOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_GEOJSON\", {\n slug: \"opencage-geocode-geojson\",\n name: \"Geocode to GeoJSON\",\n description: \"Geocode addresses or coordinates and return results in GeoJSON FeatureCollection format. Use this tool when you need: - Geographic data in standard GeoJSON format for mapping applications - Forward geocoding: convert addresses to coordinates - Reverse geocoding: convert coordinates to addresses The response includes coordinates, formatted addresses, and optional annotations like timezone, currency, and sun times for each location.\",\n input: OpencageGeocodeGeojsonInput,\n output: OpencageGeocodeGeojsonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,GAAG,EAAE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AQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gDAAgD;EACjH,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,2BAA2B;EAC5F,WAAW,uCAAuC,SAAS,CAAC,CAAC,SAAS;EACtE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,eAAe,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-geojsonp.cjs","names":["z","action"],"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":"
|
|
1
|
+
{"version":3,"file":"geocode-geojsonp.cjs","names":["z","action"],"sources":["../../src/actions/geocode-geojsonp.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeGeojsonpInput = z.object({\n q: z.string().describe(\"The address or location query to geocode (e.g., 'Berlin, Germany' or '1600 Pennsylvania Ave, Washington DC')\"),\n abbrv: z.number().int().describe(\"Abbreviate place names in results. Set to 1 to abbreviate (e.g., 'NYC' instead of 'New York City'), 0 for full names.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Defaults to 10 if not specified.\").optional(),\n bounds: z.string().describe(\"Restrict results to a geographic bounding box, specified as 'minLng,minLat,maxLng,maxLat' (west,south,east,north). Example: '-0.563,51.280,0.278,51.686' for Greater London.\").optional(),\n pretty: z.number().int().describe(\"Format JSON output with indentation for readability. Set to 1 to enable. For debugging only.\").optional(),\n callback: z.string().describe(\"Name of the JavaScript callback function to wrap the response (e.g., 'handleGeocode')\"),\n language: z.string().describe(\"Preferred language for results using ISO 639-1 language code (e.g., 'en' for English, 'de' for German).\").optional(),\n no_dedupe: z.number().int().describe(\"Disable automatic deduplication of results. Set to 1 to include potential duplicates.\").optional(),\n no_record: z.number().int().describe(\"Do not log this request in your account history. Set to 1 to disable logging.\").optional(),\n proximity: z.string().describe(\"Bias results towards a specific location, specified as 'lat,lng'. Example: '51.952,-1.162' for near Oxford, UK.\").optional(),\n add_request: z.number().int().describe(\"Include the original request parameters in the response. Set to 1 to include.\").optional(),\n countrycode: z.string().describe(\"Limit results to a specific country using ISO 3166-1 alpha-2 country code (e.g., 'US', 'DE', 'GB').\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (0-10) for results. Higher values return more precise matches only.\").optional(),\n no_annotations: z.number().int().describe(\"Exclude supplementary annotations (timezone, currency, etc.) from results. Set to 1 to exclude.\").optional(),\n}).describe(\"Request parameters for geocoding with JSONP callback wrapper.\");\nexport const OpencageGeocodeGeojsonpOutput = z.object({\n jsonp: z.string().describe(\"JSONP-formatted response with the callback function wrapping the geocode results JSON. Example: 'myCallback({\\\"results\\\": [...], \\\"status\\\": {...}})'\").nullable(),\n}).passthrough().describe(\"Response containing geocoding results wrapped in a JSONP callback.\");\n\nexport const opencageGeocodeGeojsonp: AppAction<\n typeof OpencageGeocodeGeojsonpInput,\n typeof OpencageGeocodeGeojsonpOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_GEOJSONP\", {\n slug: \"opencage-geocode-geojsonp\",\n name: \"Geocode with JSONP\",\n description: \"Geocode an address and return results wrapped in a JavaScript callback function (JSONP format). Use this tool when you need geocoding results that can be directly consumed by JavaScript through a callback function, typically for cross-domain AJAX requests in browser environments. The response wraps standard geocoding JSON with your specified callback function name. Example response: myCallback({\\\"results\\\":[{\\\"geometry\\\":{\\\"lat\\\":52.5,\\\"lng\\\":13.4},\\\"formatted\\\":\\\"Berlin, Germany\\\",...}],...})\",\n input: OpencageGeocodeGeojsonpInput,\n output: OpencageGeocodeGeojsonpOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;CACrI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CACnK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC3H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CACrN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC3I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACrH,UAAUA,IAAAA,E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