@keystrokehq/opencage 0.1.0 → 0.1.2
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 +18 -18
- package/dist/actions/geocode-forward.cjs.map +1 -1
- package/dist/actions/geocode-forward.d.cts +73 -3
- package/dist/actions/geocode-forward.d.cts.map +1 -1
- package/dist/actions/geocode-forward.d.mts +73 -3
- package/dist/actions/geocode-forward.d.mts.map +1 -1
- package/dist/actions/geocode-forward.mjs +18 -18
- package/dist/actions/geocode-forward.mjs.map +1 -1
- package/dist/actions/geocode-geojson.cjs +32 -32
- package/dist/actions/geocode-geojson.cjs.map +1 -1
- package/dist/actions/geocode-geojson.d.cts +139 -3
- package/dist/actions/geocode-geojson.d.cts.map +1 -1
- package/dist/actions/geocode-geojson.d.mts +139 -3
- package/dist/actions/geocode-geojson.d.mts.map +1 -1
- package/dist/actions/geocode-geojson.mjs +32 -32
- package/dist/actions/geocode-geojson.mjs.map +1 -1
- package/dist/actions/geocode-geojsonp.cjs +1 -1
- package/dist/actions/geocode-geojsonp.cjs.map +1 -1
- package/dist/actions/geocode-geojsonp.d.cts +35 -3
- package/dist/actions/geocode-geojsonp.d.cts.map +1 -1
- package/dist/actions/geocode-geojsonp.d.mts +35 -3
- package/dist/actions/geocode-geojsonp.d.mts.map +1 -1
- package/dist/actions/geocode-geojsonp.mjs +1 -1
- package/dist/actions/geocode-geojsonp.mjs.map +1 -1
- package/dist/actions/geocode-google-v3-json.cjs +4 -4
- package/dist/actions/geocode-google-v3-json.cjs.map +1 -1
- package/dist/actions/geocode-google-v3-json.d.cts +72 -3
- package/dist/actions/geocode-google-v3-json.d.cts.map +1 -1
- package/dist/actions/geocode-google-v3-json.d.mts +72 -3
- package/dist/actions/geocode-google-v3-json.d.mts.map +1 -1
- package/dist/actions/geocode-google-v3-json.mjs +4 -4
- package/dist/actions/geocode-google-v3-json.mjs.map +1 -1
- package/dist/actions/geocode-reverse.cjs +13 -13
- package/dist/actions/geocode-reverse.cjs.map +1 -1
- package/dist/actions/geocode-reverse.d.cts +61 -3
- package/dist/actions/geocode-reverse.d.cts.map +1 -1
- package/dist/actions/geocode-reverse.d.mts +61 -3
- package/dist/actions/geocode-reverse.d.mts.map +1 -1
- package/dist/actions/geocode-reverse.mjs +13 -13
- package/dist/actions/geocode-reverse.mjs.map +1 -1
- package/dist/actions/geocode-xml.cjs +1 -1
- package/dist/actions/geocode-xml.cjs.map +1 -1
- package/dist/actions/geocode-xml.d.cts +31 -3
- package/dist/actions/geocode-xml.d.cts.map +1 -1
- package/dist/actions/geocode-xml.d.mts +31 -3
- package/dist/actions/geocode-xml.d.mts.map +1 -1
- package/dist/actions/geocode-xml.mjs +1 -1
- package/dist/actions/geocode-xml.mjs.map +1 -1
- package/dist/actions/ping-opencage.cjs +1 -1
- package/dist/actions/ping-opencage.cjs.map +1 -1
- package/dist/actions/ping-opencage.d.cts +5 -3
- package/dist/actions/ping-opencage.d.cts.map +1 -1
- package/dist/actions/ping-opencage.d.mts +5 -3
- package/dist/actions/ping-opencage.d.mts.map +1 -1
- package/dist/actions/ping-opencage.mjs +1 -1
- package/dist/actions/ping-opencage.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return opencage.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeOpencageTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return opencage.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeOpencageTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,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"}
|
|
@@ -15,41 +15,41 @@ const OpencageGeocodeForwardInput = zod.z.object({
|
|
|
15
15
|
no_annotations: zod.z.boolean().default(false).describe("Exclude supplementary information in results").optional()
|
|
16
16
|
}).describe("Request parameters for forward geocoding.");
|
|
17
17
|
const OpencageGeocodeForward_RateSchema = zod.z.object({
|
|
18
|
-
limit: zod.z.number().int().describe("Maximum number of requests"),
|
|
19
|
-
reset: zod.z.number().int().describe("Reset timestamp (UNIX)"),
|
|
20
|
-
remaining: zod.z.number().int().describe("Remaining requests")
|
|
18
|
+
limit: zod.z.number().int().describe("Maximum number of requests").nullable(),
|
|
19
|
+
reset: zod.z.number().int().describe("Reset timestamp (UNIX)").nullable(),
|
|
20
|
+
remaining: zod.z.number().int().describe("Remaining requests").nullable()
|
|
21
21
|
});
|
|
22
22
|
const OpencageGeocodeForward_StatusSchema = zod.z.object({
|
|
23
|
-
code: zod.z.number().int().describe("Status code"),
|
|
24
|
-
message: zod.z.string().describe("Status message")
|
|
23
|
+
code: zod.z.number().int().describe("Status code").nullable(),
|
|
24
|
+
message: zod.z.string().describe("Status message").nullable()
|
|
25
25
|
});
|
|
26
26
|
const OpencageGeocodeForward_BoundsSideSchema = zod.z.object({
|
|
27
|
-
lat: zod.z.number().describe("Latitude"),
|
|
28
|
-
lng: zod.z.number().describe("Longitude")
|
|
27
|
+
lat: zod.z.number().describe("Latitude").nullable(),
|
|
28
|
+
lng: zod.z.number().describe("Longitude").nullable()
|
|
29
29
|
});
|
|
30
30
|
const OpencageGeocodeForward_BoundsSchema = zod.z.object({
|
|
31
31
|
northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),
|
|
32
32
|
southwest: OpencageGeocodeForward_BoundsSideSchema.nullable()
|
|
33
33
|
});
|
|
34
34
|
const OpencageGeocodeForward_GeometrySchema = zod.z.object({
|
|
35
|
-
lat: zod.z.number().describe("Latitude of result"),
|
|
36
|
-
lng: zod.z.number().describe("Longitude of result")
|
|
35
|
+
lat: zod.z.number().describe("Latitude of result").nullable(),
|
|
36
|
+
lng: zod.z.number().describe("Longitude of result").nullable()
|
|
37
37
|
});
|
|
38
38
|
const OpencageGeocodeForward_ResultSchema = zod.z.object({
|
|
39
39
|
bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),
|
|
40
40
|
geometry: OpencageGeocodeForward_GeometrySchema.nullable(),
|
|
41
|
-
formatted: zod.z.string().describe("Formatted address string"),
|
|
41
|
+
formatted: zod.z.string().describe("Formatted address string").nullable(),
|
|
42
42
|
components: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Address component breakdown"),
|
|
43
|
-
confidence: zod.z.number().int().describe("Confidence score"),
|
|
43
|
+
confidence: zod.z.number().int().describe("Confidence score").nullable(),
|
|
44
44
|
annotations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Supplementary annotations (excluded when no_annotations=true)").nullable().optional()
|
|
45
45
|
});
|
|
46
46
|
const OpencageGeocodeForward_LicenseSchema = zod.z.object({
|
|
47
|
-
url: zod.z.string().describe("License URL"),
|
|
48
|
-
name: zod.z.string().describe("License name")
|
|
47
|
+
url: zod.z.string().describe("License URL").nullable(),
|
|
48
|
+
name: zod.z.string().describe("License name").nullable()
|
|
49
49
|
});
|
|
50
50
|
const OpencageGeocodeForward_TimestampSchema = zod.z.object({
|
|
51
|
-
created_http: zod.z.string().describe("Creation time (HTTP format)"),
|
|
52
|
-
created_unix: zod.z.number().int().describe("Creation time (UNIX timestamp)")
|
|
51
|
+
created_http: zod.z.string().describe("Creation time (HTTP format)").nullable(),
|
|
52
|
+
created_unix: zod.z.number().int().describe("Creation time (UNIX timestamp)").nullable()
|
|
53
53
|
});
|
|
54
54
|
const OpencageGeocodeForward_StayInformedSchema = zod.z.object({
|
|
55
55
|
blog: zod.z.string().describe("Blog URL").nullable().optional(),
|
|
@@ -59,13 +59,13 @@ const OpencageGeocodeForward_StayInformedSchema = zod.z.object({
|
|
|
59
59
|
const OpencageGeocodeForwardOutput = zod.z.object({
|
|
60
60
|
rate: OpencageGeocodeForward_RateSchema.nullable(),
|
|
61
61
|
status: OpencageGeocodeForward_StatusSchema.nullable(),
|
|
62
|
-
thanks: zod.z.string().describe("Thank you message"),
|
|
62
|
+
thanks: zod.z.string().describe("Thank you message").nullable(),
|
|
63
63
|
results: zod.z.array(OpencageGeocodeForward_ResultSchema).describe("List of geocoding results"),
|
|
64
64
|
licenses: zod.z.array(OpencageGeocodeForward_LicenseSchema).describe("List of data licenses"),
|
|
65
65
|
timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),
|
|
66
|
-
documentation: zod.z.string().describe("Link to API documentation"),
|
|
66
|
+
documentation: zod.z.string().describe("Link to API documentation").nullable(),
|
|
67
67
|
stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),
|
|
68
|
-
total_results: zod.z.number().int().describe("Total number of results returned")
|
|
68
|
+
total_results: zod.z.number().int().describe("Total number of results returned").nullable()
|
|
69
69
|
});
|
|
70
70
|
const opencageGeocodeForward = require_action.action("OPENCAGE_GEOCODE_FORWARD", {
|
|
71
71
|
slug: "opencage-geocode-forward",
|
|
@@ -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
|
|
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});\nconst OpencageGeocodeForward_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n});\nconst OpencageGeocodeForward_BoundsSideSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n});\nconst OpencageGeocodeForward_BoundsSchema = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n});\nconst OpencageGeocodeForward_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of result\").nullable(),\n lng: z.number().describe(\"Longitude of result\").nullable(),\n});\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});\nconst OpencageGeocodeForward_LicenseSchema = z.object({\n url: z.string().describe(\"License URL\").nullable(),\n name: z.string().describe(\"License name\").nullable(),\n});\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});\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});\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});\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: OpencageG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AmC,CAAC,CAAC,SAAS,2BAA2B;CAC1F,UAAUA,IAAAA,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;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,79 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/geocode-forward.d.ts
|
|
4
|
-
declare const OpencageGeocodeForwardInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpencageGeocodeForwardInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
abbrv: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
bounds: z.ZodOptional<z.ZodString>;
|
|
9
|
+
pretty: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
10
|
+
language: z.ZodOptional<z.ZodString>;
|
|
11
|
+
proximity: z.ZodOptional<z.ZodString>;
|
|
12
|
+
add_request: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
countrycode: z.ZodOptional<z.ZodString>;
|
|
14
|
+
min_confidence: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
no_annotations: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const OpencageGeocodeForwardOutput: z.ZodObject<{
|
|
18
|
+
rate: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
reset: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
message: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
thanks: z.ZodNullable<z.ZodString>;
|
|
28
|
+
results: z.ZodArray<z.ZodObject<{
|
|
29
|
+
bounds: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
30
|
+
northeast: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
southwest: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
formatted: z.ZodNullable<z.ZodString>;
|
|
44
|
+
components: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
|
+
confidence: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
licenses: z.ZodArray<z.ZodObject<{
|
|
49
|
+
url: z.ZodNullable<z.ZodString>;
|
|
50
|
+
name: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
timestamp: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
created_http: z.ZodNullable<z.ZodString>;
|
|
54
|
+
created_unix: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
documentation: z.ZodNullable<z.ZodString>;
|
|
57
|
+
stay_informed: z.ZodNullable<z.ZodObject<{
|
|
58
|
+
blog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
twitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
mastodon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
total_results: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
declare const opencageGeocodeForward: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
77
|
//#endregion
|
|
8
78
|
export { opencageGeocodeForward };
|
|
9
79
|
//# sourceMappingURL=geocode-forward.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-forward.d.cts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"geocode-forward.d.cts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAuD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,79 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/geocode-forward.d.ts
|
|
4
|
-
declare const OpencageGeocodeForwardInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpencageGeocodeForwardInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
abbrv: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
bounds: z.ZodOptional<z.ZodString>;
|
|
9
|
+
pretty: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
10
|
+
language: z.ZodOptional<z.ZodString>;
|
|
11
|
+
proximity: z.ZodOptional<z.ZodString>;
|
|
12
|
+
add_request: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
countrycode: z.ZodOptional<z.ZodString>;
|
|
14
|
+
min_confidence: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
no_annotations: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const OpencageGeocodeForwardOutput: z.ZodObject<{
|
|
18
|
+
rate: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
reset: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
message: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
thanks: z.ZodNullable<z.ZodString>;
|
|
28
|
+
results: z.ZodArray<z.ZodObject<{
|
|
29
|
+
bounds: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
30
|
+
northeast: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
southwest: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
formatted: z.ZodNullable<z.ZodString>;
|
|
44
|
+
components: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
|
+
confidence: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
licenses: z.ZodArray<z.ZodObject<{
|
|
49
|
+
url: z.ZodNullable<z.ZodString>;
|
|
50
|
+
name: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
timestamp: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
created_http: z.ZodNullable<z.ZodString>;
|
|
54
|
+
created_unix: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
documentation: z.ZodNullable<z.ZodString>;
|
|
57
|
+
stay_informed: z.ZodNullable<z.ZodObject<{
|
|
58
|
+
blog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
twitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
mastodon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
total_results: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
declare const opencageGeocodeForward: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
77
|
//#endregion
|
|
8
78
|
export { opencageGeocodeForward };
|
|
9
79
|
//# sourceMappingURL=geocode-forward.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-forward.d.mts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"geocode-forward.d.mts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAuD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -15,41 +15,41 @@ const OpencageGeocodeForwardInput = z.object({
|
|
|
15
15
|
no_annotations: z.boolean().default(false).describe("Exclude supplementary information in results").optional()
|
|
16
16
|
}).describe("Request parameters for forward geocoding.");
|
|
17
17
|
const OpencageGeocodeForward_RateSchema = z.object({
|
|
18
|
-
limit: z.number().int().describe("Maximum number of requests"),
|
|
19
|
-
reset: z.number().int().describe("Reset timestamp (UNIX)"),
|
|
20
|
-
remaining: z.number().int().describe("Remaining requests")
|
|
18
|
+
limit: z.number().int().describe("Maximum number of requests").nullable(),
|
|
19
|
+
reset: z.number().int().describe("Reset timestamp (UNIX)").nullable(),
|
|
20
|
+
remaining: z.number().int().describe("Remaining requests").nullable()
|
|
21
21
|
});
|
|
22
22
|
const OpencageGeocodeForward_StatusSchema = z.object({
|
|
23
|
-
code: z.number().int().describe("Status code"),
|
|
24
|
-
message: z.string().describe("Status message")
|
|
23
|
+
code: z.number().int().describe("Status code").nullable(),
|
|
24
|
+
message: z.string().describe("Status message").nullable()
|
|
25
25
|
});
|
|
26
26
|
const OpencageGeocodeForward_BoundsSideSchema = z.object({
|
|
27
|
-
lat: z.number().describe("Latitude"),
|
|
28
|
-
lng: z.number().describe("Longitude")
|
|
27
|
+
lat: z.number().describe("Latitude").nullable(),
|
|
28
|
+
lng: z.number().describe("Longitude").nullable()
|
|
29
29
|
});
|
|
30
30
|
const OpencageGeocodeForward_BoundsSchema = z.object({
|
|
31
31
|
northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),
|
|
32
32
|
southwest: OpencageGeocodeForward_BoundsSideSchema.nullable()
|
|
33
33
|
});
|
|
34
34
|
const OpencageGeocodeForward_GeometrySchema = z.object({
|
|
35
|
-
lat: z.number().describe("Latitude of result"),
|
|
36
|
-
lng: z.number().describe("Longitude of result")
|
|
35
|
+
lat: z.number().describe("Latitude of result").nullable(),
|
|
36
|
+
lng: z.number().describe("Longitude of result").nullable()
|
|
37
37
|
});
|
|
38
38
|
const OpencageGeocodeForward_ResultSchema = z.object({
|
|
39
39
|
bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),
|
|
40
40
|
geometry: OpencageGeocodeForward_GeometrySchema.nullable(),
|
|
41
|
-
formatted: z.string().describe("Formatted address string"),
|
|
41
|
+
formatted: z.string().describe("Formatted address string").nullable(),
|
|
42
42
|
components: z.record(z.string(), z.unknown()).describe("Address component breakdown"),
|
|
43
|
-
confidence: z.number().int().describe("Confidence score"),
|
|
43
|
+
confidence: z.number().int().describe("Confidence score").nullable(),
|
|
44
44
|
annotations: z.record(z.string(), z.unknown()).describe("Supplementary annotations (excluded when no_annotations=true)").nullable().optional()
|
|
45
45
|
});
|
|
46
46
|
const OpencageGeocodeForward_LicenseSchema = z.object({
|
|
47
|
-
url: z.string().describe("License URL"),
|
|
48
|
-
name: z.string().describe("License name")
|
|
47
|
+
url: z.string().describe("License URL").nullable(),
|
|
48
|
+
name: z.string().describe("License name").nullable()
|
|
49
49
|
});
|
|
50
50
|
const OpencageGeocodeForward_TimestampSchema = z.object({
|
|
51
|
-
created_http: z.string().describe("Creation time (HTTP format)"),
|
|
52
|
-
created_unix: z.number().int().describe("Creation time (UNIX timestamp)")
|
|
51
|
+
created_http: z.string().describe("Creation time (HTTP format)").nullable(),
|
|
52
|
+
created_unix: z.number().int().describe("Creation time (UNIX timestamp)").nullable()
|
|
53
53
|
});
|
|
54
54
|
const OpencageGeocodeForward_StayInformedSchema = z.object({
|
|
55
55
|
blog: z.string().describe("Blog URL").nullable().optional(),
|
|
@@ -64,13 +64,13 @@ const opencageGeocodeForward = action("OPENCAGE_GEOCODE_FORWARD", {
|
|
|
64
64
|
output: z.object({
|
|
65
65
|
rate: OpencageGeocodeForward_RateSchema.nullable(),
|
|
66
66
|
status: OpencageGeocodeForward_StatusSchema.nullable(),
|
|
67
|
-
thanks: z.string().describe("Thank you message"),
|
|
67
|
+
thanks: z.string().describe("Thank you message").nullable(),
|
|
68
68
|
results: z.array(OpencageGeocodeForward_ResultSchema).describe("List of geocoding results"),
|
|
69
69
|
licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe("List of data licenses"),
|
|
70
70
|
timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),
|
|
71
|
-
documentation: z.string().describe("Link to API documentation"),
|
|
71
|
+
documentation: z.string().describe("Link to API documentation").nullable(),
|
|
72
72
|
stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),
|
|
73
|
-
total_results: z.number().int().describe("Total number of results returned")
|
|
73
|
+
total_results: z.number().int().describe("Total number of results returned").nullable()
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
//#endregion
|
|
@@ -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
|
|
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});\nconst OpencageGeocodeForward_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n});\nconst OpencageGeocodeForward_BoundsSideSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n});\nconst OpencageGeocodeForward_BoundsSchema = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n});\nconst OpencageGeocodeForward_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of result\").nullable(),\n lng: z.number().describe(\"Longitude of result\").nullable(),\n});\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});\nconst OpencageGeocodeForward_LicenseSchema = z.object({\n url: z.string().describe(\"License URL\").nullable(),\n name: z.string().describe(\"License name\").nullable(),\n});\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});\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});\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});\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":";;;AAIA,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,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OA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CAAoC,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,CAOU;AACV,CAAC"}
|
|
@@ -17,16 +17,16 @@ const OpencageGeocodeGeojsonInput = zod.z.object({
|
|
|
17
17
|
no_annotations: zod.z.boolean().default(false).describe("Exclude detailed annotations (timezone, currency, sun times, etc.) from response.").optional()
|
|
18
18
|
}).describe("Request parameters for geocoding to GeoJSON format.\nSupports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).");
|
|
19
19
|
const OpencageGeocodeGeojson_RateSchema = zod.z.object({
|
|
20
|
-
limit: zod.z.number().int().describe("Maximum requests allowed per day."),
|
|
21
|
-
reset: zod.z.number().int().describe("UNIX timestamp when limit resets."),
|
|
22
|
-
remaining: zod.z.number().int().describe("Remaining requests today.")
|
|
20
|
+
limit: zod.z.number().int().describe("Maximum requests allowed per day.").nullable(),
|
|
21
|
+
reset: zod.z.number().int().describe("UNIX timestamp when limit resets.").nullable(),
|
|
22
|
+
remaining: zod.z.number().int().describe("Remaining requests today.").nullable()
|
|
23
23
|
}).describe("API rate limit information.");
|
|
24
24
|
const OpencageGeocodeGeojson_StatusSchema = zod.z.object({
|
|
25
|
-
code: zod.z.number().int().describe("HTTP-like status code (200=OK, 400=invalid, etc.)."),
|
|
26
|
-
message: zod.z.string().describe("Status message.")
|
|
25
|
+
code: zod.z.number().int().describe("HTTP-like status code (200=OK, 400=invalid, etc.).").nullable(),
|
|
26
|
+
message: zod.z.string().describe("Status message.").nullable()
|
|
27
27
|
}).describe("API response status.");
|
|
28
28
|
const OpencageGeocodeGeojson_GeometrySchema = zod.z.object({
|
|
29
|
-
type: zod.z.string().describe("GeoJSON geometry type, always 'Point' for geocoding results."),
|
|
29
|
+
type: zod.z.string().describe("GeoJSON geometry type, always 'Point' for geocoding results.").nullable(),
|
|
30
30
|
coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [longitude, latitude].")
|
|
31
31
|
}).describe("GeoJSON Point geometry.");
|
|
32
32
|
const OpencageGeocodeGeojson_BoundsSchema = zod.z.object({
|
|
@@ -34,8 +34,8 @@ const OpencageGeocodeGeojson_BoundsSchema = zod.z.object({
|
|
|
34
34
|
southwest: zod.z.object({}).describe("Southwest corner with 'lat' and 'lng'.")
|
|
35
35
|
}).describe("Geographic bounding box.");
|
|
36
36
|
const OpencageGeocodeGeojson_AnnotationDMSSchema = zod.z.object({
|
|
37
|
-
lat: zod.z.string().describe("Latitude in DMS format (e.g., \"52° 31' 2.59860'' N\")."),
|
|
38
|
-
lng: zod.z.string().describe("Longitude in DMS format (e.g., \"13° 23' 42.47124'' E\").")
|
|
37
|
+
lat: zod.z.string().describe("Latitude in DMS format (e.g., \"52° 31' 2.59860'' N\").").nullable(),
|
|
38
|
+
lng: zod.z.string().describe("Longitude in DMS format (e.g., \"13° 23' 42.47124'' E\").").nullable()
|
|
39
39
|
}).describe("Coordinates in Degrees Minutes Seconds format.");
|
|
40
40
|
const OpencageGeocodeGeojson_AnnotationOSMSchema = zod.z.object({
|
|
41
41
|
url: zod.z.string().describe("URL to view this location on OpenStreetMap.").nullable().optional(),
|
|
@@ -43,24 +43,24 @@ const OpencageGeocodeGeojson_AnnotationOSMSchema = zod.z.object({
|
|
|
43
43
|
note_url: zod.z.string().describe("URL to add a note at this location.").nullable().optional()
|
|
44
44
|
}).describe("OpenStreetMap links.");
|
|
45
45
|
const OpencageGeocodeGeojson_SunTimesSchema = zod.z.object({
|
|
46
|
-
civil: zod.z.number().int().describe("Civil twilight time (UNIX timestamp)."),
|
|
47
|
-
apparent: zod.z.number().int().describe("Apparent sunrise/sunset time (UNIX timestamp)."),
|
|
48
|
-
nautical: zod.z.number().int().describe("Nautical twilight time (UNIX timestamp)."),
|
|
49
|
-
astronomical: zod.z.number().int().describe("Astronomical twilight time (UNIX timestamp).")
|
|
46
|
+
civil: zod.z.number().int().describe("Civil twilight time (UNIX timestamp).").nullable(),
|
|
47
|
+
apparent: zod.z.number().int().describe("Apparent sunrise/sunset time (UNIX timestamp).").nullable(),
|
|
48
|
+
nautical: zod.z.number().int().describe("Nautical twilight time (UNIX timestamp).").nullable(),
|
|
49
|
+
astronomical: zod.z.number().int().describe("Astronomical twilight time (UNIX timestamp).").nullable()
|
|
50
50
|
}).describe("Sun timing information with different twilight types.");
|
|
51
51
|
const OpencageGeocodeGeojson_AnnotationSunSchema = zod.z.object({
|
|
52
52
|
set: OpencageGeocodeGeojson_SunTimesSchema.nullable(),
|
|
53
53
|
rise: OpencageGeocodeGeojson_SunTimesSchema.nullable()
|
|
54
54
|
}).describe("Sunrise and sunset times for the location.");
|
|
55
55
|
const OpencageGeocodeGeojson_AnnotationMercatorSchema = zod.z.object({
|
|
56
|
-
x: zod.z.number().describe("Mercator x-coordinate (easting)."),
|
|
57
|
-
y: zod.z.number().describe("Mercator y-coordinate (northing).")
|
|
56
|
+
x: zod.z.number().describe("Mercator x-coordinate (easting).").nullable(),
|
|
57
|
+
y: zod.z.number().describe("Mercator y-coordinate (northing).").nullable()
|
|
58
58
|
}).describe("Coordinates in Web Mercator projection (EPSG:3857).");
|
|
59
59
|
const OpencageGeocodeGeojson_AnnotationCurrencySchema = zod.z.object({
|
|
60
|
-
name: zod.z.string().describe("Currency name (e.g., 'Euro')."),
|
|
61
|
-
symbol: zod.z.string().describe("Currency symbol (e.g., '€')."),
|
|
60
|
+
name: zod.z.string().describe("Currency name (e.g., 'Euro').").nullable(),
|
|
61
|
+
symbol: zod.z.string().describe("Currency symbol (e.g., '€').").nullable(),
|
|
62
62
|
subunit: zod.z.string().describe("Name of the subunit (e.g., 'Cent').").nullable().optional(),
|
|
63
|
-
iso_code: zod.z.string().describe("ISO 4217 currency code (e.g., 'EUR')."),
|
|
63
|
+
iso_code: zod.z.string().describe("ISO 4217 currency code (e.g., 'EUR').").nullable(),
|
|
64
64
|
html_entity: zod.z.string().describe("HTML entity for the currency symbol.").nullable().optional(),
|
|
65
65
|
iso_numeric: zod.z.string().describe("ISO 4217 numeric code.").nullable().optional(),
|
|
66
66
|
decimal_mark: zod.z.string().describe("Decimal separator character.").nullable().optional(),
|
|
@@ -72,16 +72,16 @@ const OpencageGeocodeGeojson_AnnotationCurrencySchema = zod.z.object({
|
|
|
72
72
|
}).describe("Currency information for the location's country.");
|
|
73
73
|
const OpencageGeocodeGeojson_AnnotationRoadInfoSchema = zod.z.object({
|
|
74
74
|
road: zod.z.string().describe("Road name if available.").nullable().optional(),
|
|
75
|
-
drive_on: zod.z.string().describe("Side of road for driving ('left' or 'right')."),
|
|
76
|
-
speed_in: zod.z.string().describe("Speed unit used ('km/h' or 'mph')."),
|
|
75
|
+
drive_on: zod.z.string().describe("Side of road for driving ('left' or 'right').").nullable(),
|
|
76
|
+
speed_in: zod.z.string().describe("Speed unit used ('km/h' or 'mph').").nullable(),
|
|
77
77
|
road_type: zod.z.string().describe("Type of road.").nullable().optional()
|
|
78
78
|
}).describe("Road and driving information.");
|
|
79
79
|
const OpencageGeocodeGeojson_AnnotationTimezoneSchema = zod.z.object({
|
|
80
|
-
name: zod.z.string().describe("IANA timezone name (e.g., 'Europe/Berlin')."),
|
|
81
|
-
now_in_dst: zod.z.number().int().describe("Whether currently in DST (1) or not (0)."),
|
|
82
|
-
offset_sec: zod.z.number().int().describe("UTC offset in seconds."),
|
|
83
|
-
short_name: zod.z.string().describe("Timezone abbreviation (e.g., 'CET')."),
|
|
84
|
-
offset_string: zod.z.string().describe("UTC offset as string (e.g., '+0100').")
|
|
80
|
+
name: zod.z.string().describe("IANA timezone name (e.g., 'Europe/Berlin').").nullable(),
|
|
81
|
+
now_in_dst: zod.z.number().int().describe("Whether currently in DST (1) or not (0).").nullable(),
|
|
82
|
+
offset_sec: zod.z.number().int().describe("UTC offset in seconds.").nullable(),
|
|
83
|
+
short_name: zod.z.string().describe("Timezone abbreviation (e.g., 'CET').").nullable(),
|
|
84
|
+
offset_string: zod.z.string().describe("UTC offset as string (e.g., '+0100').").nullable()
|
|
85
85
|
}).describe("Timezone information.");
|
|
86
86
|
const OpencageGeocodeGeojson_AnnotationsSchema = zod.z.object({
|
|
87
87
|
DMS: OpencageGeocodeGeojson_AnnotationDMSSchema.nullable().optional(),
|
|
@@ -104,23 +104,23 @@ const OpencageGeocodeGeojson_AnnotationsSchema = zod.z.object({
|
|
|
104
104
|
}).describe("Additional geographic annotations for a result. All fields are optional as they depend on API parameters.");
|
|
105
105
|
const OpencageGeocodeGeojson_FeaturePropertiesSchema = zod.z.object({
|
|
106
106
|
bounds: OpencageGeocodeGeojson_BoundsSchema.nullable().optional(),
|
|
107
|
-
formatted: zod.z.string().describe("Fully formatted address string."),
|
|
107
|
+
formatted: zod.z.string().describe("Fully formatted address string.").nullable(),
|
|
108
108
|
components: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structured address components (country, city, street, etc.)."),
|
|
109
|
-
confidence: zod.z.number().int().describe("Confidence score (1-10) for this result."),
|
|
109
|
+
confidence: zod.z.number().int().describe("Confidence score (1-10) for this result.").nullable(),
|
|
110
110
|
annotations: OpencageGeocodeGeojson_AnnotationsSchema.nullable().optional()
|
|
111
111
|
}).describe("Properties of a GeoJSON feature from geocoding.");
|
|
112
112
|
const OpencageGeocodeGeojson_FeatureSchema = zod.z.object({
|
|
113
|
-
type: zod.z.string().describe("GeoJSON type, always 'Feature'."),
|
|
113
|
+
type: zod.z.string().describe("GeoJSON type, always 'Feature'.").nullable(),
|
|
114
114
|
geometry: OpencageGeocodeGeojson_GeometrySchema.nullable(),
|
|
115
115
|
properties: OpencageGeocodeGeojson_FeaturePropertiesSchema.nullable()
|
|
116
116
|
}).describe("GeoJSON Feature representing a geocoding result.");
|
|
117
117
|
const OpencageGeocodeGeojson_LicenseSchema = zod.z.object({
|
|
118
|
-
url: zod.z.string().describe("URL to license details."),
|
|
119
|
-
name: zod.z.string().describe("License name.")
|
|
118
|
+
url: zod.z.string().describe("URL to license details.").nullable(),
|
|
119
|
+
name: zod.z.string().describe("License name.").nullable()
|
|
120
120
|
}).describe("Data license information.");
|
|
121
121
|
const OpencageGeocodeGeojson_TimestampSchema = zod.z.object({
|
|
122
|
-
created_http: zod.z.string().describe("Timestamp in HTTP date format."),
|
|
123
|
-
created_unix: zod.z.number().int().describe("Timestamp as UNIX epoch seconds.")
|
|
122
|
+
created_http: zod.z.string().describe("Timestamp in HTTP date format.").nullable(),
|
|
123
|
+
created_unix: zod.z.number().int().describe("Timestamp as UNIX epoch seconds.").nullable()
|
|
124
124
|
}).describe("Response timestamp.");
|
|
125
125
|
const OpencageGeocodeGeojson_StayInformedSchema = zod.z.object({
|
|
126
126
|
blog: zod.z.string().describe("Blog URL.").nullable().optional(),
|
|
@@ -128,7 +128,7 @@ const OpencageGeocodeGeojson_StayInformedSchema = zod.z.object({
|
|
|
128
128
|
}).describe("Links to stay informed about the API.");
|
|
129
129
|
const OpencageGeocodeGeojsonOutput = zod.z.object({
|
|
130
130
|
rate: OpencageGeocodeGeojson_RateSchema.nullable().optional(),
|
|
131
|
-
type: zod.z.string().describe("GeoJSON type, always 'FeatureCollection'."),
|
|
131
|
+
type: zod.z.string().describe("GeoJSON type, always 'FeatureCollection'.").nullable(),
|
|
132
132
|
status: OpencageGeocodeGeojson_StatusSchema.nullable().optional(),
|
|
133
133
|
thanks: zod.z.string().describe("Thank you message from API.").nullable().optional(),
|
|
134
134
|
features: zod.z.array(OpencageGeocodeGeojson_FeatureSchema).describe("List of geocoding results as GeoJSON features."),
|