@keystrokehq/opencage 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/geocode-forward.cjs +28 -28
- 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 +28 -28
- package/dist/actions/geocode-forward.mjs.map +1 -1
- package/dist/actions/geocode-geojson.cjs +54 -54
- 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 +54 -54
- 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 +10 -10
- 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 +10 -10
- package/dist/actions/geocode-google-v3-json.mjs.map +1 -1
- package/dist/actions/geocode-reverse.cjs +20 -20
- 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 +20 -20
- package/dist/actions/geocode-reverse.mjs.map +1 -1
- package/dist/actions/geocode-xml.cjs +2 -2
- 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 +2 -2
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-reverse.mjs","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeReverseInput
|
|
1
|
+
{"version":3,"file":"geocode-reverse.mjs","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeReverseInput = z.object({\n q: z.string().describe(\"Latitude and longitude as a comma-separated string, e.g., '51.952659,7.632473'\"),\n abbrv: z.number().int().default(0).describe(\"1 to abbreviate road and route types\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-10)\").optional(),\n pretty: z.number().int().default(0).describe(\"1 for pretty-printed JSON, 0 (default) for compact output\").optional(),\n language: z.string().describe(\"Preferred response language as ISO 639-1 code, e.g., 'en'\").optional(),\n roadinfo: z.number().int().default(0).describe(\"1 to include road information in the response\").optional(),\n add_request: z.number().int().default(0).describe(\"1 to include request parameters in the response\").optional(),\n countrycode: z.string().describe(\"Restrict results to one or more ISO 3166-1 alpha-2 country codes separated by commas\").optional(),\n normalizecity: z.number().int().default(0).describe(\"1 to normalize city names\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level (0-10) to filter results\").optional(),\n no_annotations: z.number().int().default(0).describe(\"1 to exclude annotations in the response\").optional(),\n});\nconst OpencageGeocodeReverse_RateSchema = z.object({\n limit: z.number().int().describe(\"Rate limit\").nullable(),\n reset: z.number().int().describe(\"Seconds until rate limit resets\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests in current rate window\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code of the request, 200 indicates success\").nullable(),\n message: z.string().describe(\"Status message of the request\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of the result\").nullable(),\n lng: z.number().describe(\"Longitude of the result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeocodeReverseResultSchema = z.object({\n bounds: z.record(z.string(), z.unknown()).describe(\"Bounding box of the result (northeast and southwest corners)\").nullable().optional(),\n geometry: OpencageGeocodeReverse_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Human-readable formatted address\").nullable(),\n components: z.record(z.string(), z.unknown()).describe(\"Address components breakdown (e.g., country, city, road, postcode)\"),\n confidence: z.number().int().describe(\"Confidence score (0-10)\").nullable(),\n annotations: z.record(z.string(), z.unknown()).describe(\"Additional annotation metadata (timezone, currency, DMS coordinates, etc.)\").nullable().optional(),\n distance_from_q: z.record(z.string(), z.unknown()).describe(\"Distance from the queried coordinates in meters\").nullable().optional(),\n}).passthrough();\nconst OpencageGeocodeReverse_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp when the response was created (HTTP-format)\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp when the response was created (Unix time)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StayInformedSchema = z.object({\n blog: z.string().describe(\"URL to the OpenCage blog\").nullable().optional(),\n twitter: z.string().describe(\"OpenCage Twitter/X handle\").nullable().optional(),\n facebook: z.string().describe(\"OpenCage Facebook page URL\").nullable().optional(),\n mastodon: z.string().describe(\"OpenCage Mastodon profile URL\").nullable().optional(),\n}).passthrough();\nexport const OpencageGeocodeReverseOutput = z.object({\n rate: OpencageGeocodeReverse_RateSchema.nullable(),\n status: OpencageGeocodeReverse_StatusSchema.nullable(),\n thanks: z.string().describe(\"Attribution text\").nullable(),\n results: z.array(OpencageGeocodeReverse_GeocodeReverseResultSchema).describe(\"List of reverse geocoded results\"),\n timestamp: OpencageGeocodeReverse_TimestampSchema.nullable(),\n stay_informed: OpencageGeocodeReverse_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results\").nullable(),\n}).passthrough();\n\nexport const opencageGeocodeReverse = action(\"OPENCAGE_GEOCODE_REVERSE\", {\n slug: \"opencage-geocode-reverse\",\n name: \"Reverse Geocode Coordinates\",\n description: \"Tool to convert coordinates to a human-readable address. Use when you have latitude and longitude and need a readable location.\",\n input: OpencageGeocodeReverseInput,\n output: OpencageGeocodeReverseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CACvG,OAAO,EAAE,OAAO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AAM,yCAAyC,EAAE,OAAO;CACtD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AAWf,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0C,EAAE,OAAO;EACnD,MAAM,kCAAkC,SAAS;EACjD,QAAQ,oCAAoC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,SAAS,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,kCAAkC;EAC/G,WAAW,uCAAuC,SAAS;EAC3D,eAAe,0CAA0C,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -15,10 +15,10 @@ const OpencageGeocodeXmlInput = zod.z.object({
|
|
|
15
15
|
no_annotations: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include").optional()
|
|
16
16
|
}).describe("Request parameters for OpenCage GEOCODE_XML action.\nPerforms geocoding and returns results in XML format.");
|
|
17
17
|
const OpencageGeocodeXmlOutput = zod.z.object({
|
|
18
|
-
xml: zod.z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata"),
|
|
18
|
+
xml: zod.z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata").nullable(),
|
|
19
19
|
status_code: zod.z.number().int().describe("API status code (200 for success, extracted from XML for convenience)").nullable().optional(),
|
|
20
20
|
total_results: zod.z.number().int().describe("Number of geocoding results found (extracted from XML for convenience)").nullable().optional()
|
|
21
|
-
}).describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.");
|
|
21
|
+
}).passthrough().describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.");
|
|
22
22
|
const opencageGeocodeXml = require_action.action("OPENCAGE_GEOCODE_XML", {
|
|
23
23
|
slug: "opencage-geocode-xml",
|
|
24
24
|
name: "Geocode XML",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-xml.cjs","names":["z","action"],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeXmlInput
|
|
1
|
+
{"version":3,"file":"geocode-xml.cjs","names":["z","action"],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeXmlInput = z.object({\n q: z.string().describe(\"Location query: use an address or place name for forward geocoding, or 'lat,lng' coordinates for reverse geocoding\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return abbreviated address components (e.g., 'CA' instead of 'California')\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10 if not specified\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 for human-readable formatted XML output, 0 or omit for compact output\").optional(),\n language: z.string().describe(\"IETF language tag for results (e.g., 'en' for English, 'de' for German, 'fr' for French)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include detailed road and driving information for the location\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return all results including duplicates, 0 or omit to deduplicate\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include original request parameters in the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries using comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us,ca' for USA and Canada)\").optional(),\n min_confidence: z.number().int().describe(\"Filter results to only include those with confidence score at or above this value (1-10, where 10 is highest)\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include\").optional(),\n}).describe(\"Request parameters for OpenCage GEOCODE_XML action.\\nPerforms geocoding and returns results in XML format.\");\nexport const OpencageGeocodeXmlOutput = z.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\").nullable(),\n status_code: z.number().int().describe(\"API status code (200 for success, extracted from XML for convenience)\").nullable().optional(),\n total_results: z.number().int().describe(\"Number of geocoding results found (extracted from XML for convenience)\").nullable().optional(),\n}).passthrough().describe(\"Response model for OpenCage GEOCODE_XML action.\\nReturns geocoding results in XML format.\");\n\nexport const opencageGeocodeXml = action(\"OPENCAGE_GEOCODE_XML\", {\n slug: \"opencage-geocode-xml\",\n name: \"Geocode XML\",\n description: \"Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.\",\n input: OpencageGeocodeXmlInput,\n output: OpencageGeocodeXmlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,GAAGA,IAAAA,EAAE,OAAO,CAAC,C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AAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC5K,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACjJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAA2F;AAErH,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/geocode-xml.d.ts
|
|
4
|
-
declare const OpencageGeocodeXmlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpencageGeocodeXmlInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
abbrv: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
pretty: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
9
|
+
language: z.ZodOptional<z.ZodString>;
|
|
10
|
+
roadinfo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
11
|
+
no_dedupe: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
12
|
+
add_request: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
13
|
+
countrycode: z.ZodOptional<z.ZodString>;
|
|
14
|
+
min_confidence: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
no_annotations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const OpencageGeocodeXmlOutput: z.ZodObject<{
|
|
18
|
+
xml: z.ZodNullable<z.ZodString>;
|
|
19
|
+
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
q: string;
|
|
24
|
+
abbrv?: 0 | 1 | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
pretty?: 0 | 1 | undefined;
|
|
27
|
+
language?: string | undefined;
|
|
28
|
+
roadinfo?: 0 | 1 | undefined;
|
|
29
|
+
no_dedupe?: 0 | 1 | undefined;
|
|
30
|
+
add_request?: 0 | 1 | undefined;
|
|
31
|
+
countrycode?: string | undefined;
|
|
32
|
+
min_confidence?: number | undefined;
|
|
33
|
+
no_annotations?: 0 | 1 | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { opencageGeocodeXml };
|
|
9
37
|
//# sourceMappingURL=geocode-xml.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-xml.d.cts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"geocode-xml.d.cts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/geocode-xml.d.ts
|
|
4
|
-
declare const OpencageGeocodeXmlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpencageGeocodeXmlInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
abbrv: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
pretty: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
9
|
+
language: z.ZodOptional<z.ZodString>;
|
|
10
|
+
roadinfo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
11
|
+
no_dedupe: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
12
|
+
add_request: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
13
|
+
countrycode: z.ZodOptional<z.ZodString>;
|
|
14
|
+
min_confidence: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
no_annotations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const OpencageGeocodeXmlOutput: z.ZodObject<{
|
|
18
|
+
xml: z.ZodNullable<z.ZodString>;
|
|
19
|
+
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
q: string;
|
|
24
|
+
abbrv?: 0 | 1 | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
pretty?: 0 | 1 | undefined;
|
|
27
|
+
language?: string | undefined;
|
|
28
|
+
roadinfo?: 0 | 1 | undefined;
|
|
29
|
+
no_dedupe?: 0 | 1 | undefined;
|
|
30
|
+
add_request?: 0 | 1 | undefined;
|
|
31
|
+
countrycode?: string | undefined;
|
|
32
|
+
min_confidence?: number | undefined;
|
|
33
|
+
no_annotations?: 0 | 1 | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { opencageGeocodeXml };
|
|
9
37
|
//# sourceMappingURL=geocode-xml.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-xml.d.mts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"geocode-xml.d.mts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -18,10 +18,10 @@ const opencageGeocodeXml = action("OPENCAGE_GEOCODE_XML", {
|
|
|
18
18
|
no_annotations: z.union([z.literal(0), z.literal(1)]).describe("Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include").optional()
|
|
19
19
|
}).describe("Request parameters for OpenCage GEOCODE_XML action.\nPerforms geocoding and returns results in XML format."),
|
|
20
20
|
output: z.object({
|
|
21
|
-
xml: z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata"),
|
|
21
|
+
xml: z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata").nullable(),
|
|
22
22
|
status_code: z.number().int().describe("API status code (200 for success, extracted from XML for convenience)").nullable().optional(),
|
|
23
23
|
total_results: z.number().int().describe("Number of geocoding results found (extracted from XML for convenience)").nullable().optional()
|
|
24
|
-
}).describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.")
|
|
24
|
+
}).passthrough().describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { opencageGeocodeXml };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-xml.mjs","names":[],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeXmlInput
|
|
1
|
+
{"version":3,"file":"geocode-xml.mjs","names":[],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeXmlInput = z.object({\n q: z.string().describe(\"Location query: use an address or place name for forward geocoding, or 'lat,lng' coordinates for reverse geocoding\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return abbreviated address components (e.g., 'CA' instead of 'California')\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10 if not specified\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 for human-readable formatted XML output, 0 or omit for compact output\").optional(),\n language: z.string().describe(\"IETF language tag for results (e.g., 'en' for English, 'de' for German, 'fr' for French)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include detailed road and driving information for the location\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return all results including duplicates, 0 or omit to deduplicate\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include original request parameters in the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries using comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us,ca' for USA and Canada)\").optional(),\n min_confidence: z.number().int().describe(\"Filter results to only include those with confidence score at or above this value (1-10, where 10 is highest)\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include\").optional(),\n}).describe(\"Request parameters for OpenCage GEOCODE_XML action.\\nPerforms geocoding and returns results in XML format.\");\nexport const OpencageGeocodeXmlOutput = z.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\").nullable(),\n status_code: z.number().int().describe(\"API status code (200 for success, extracted from XML for convenience)\").nullable().optional(),\n total_results: z.number().int().describe(\"Number of geocoding results found (extracted from XML for convenience)\").nullable().optional(),\n}).passthrough().describe(\"Response model for OpenCage GEOCODE_XML action.\\nReturns geocoding results in XML format.\");\n\nexport const opencageGeocodeXml = action(\"OPENCAGE_GEOCODE_XML\", {\n slug: \"opencage-geocode-xml\",\n name: \"Geocode XML\",\n description: \"Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.\",\n input: OpencageGeocodeXmlInput,\n output: OpencageGeocodeXmlOutput,\n});\n"],"mappings":";;AAuBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBqC,EAAE,OAAO;EAC9C,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EAC3I,OAAO,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAA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AAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/ping-opencage.ts
|
|
4
4
|
const OpencagePingOpencageInput = zod.z.object({}).describe("Request parameters for OpenCage API ping health check.");
|
|
5
|
-
const OpencagePingOpencageOutput = zod.z.object({ message: zod.z.string().describe("Response message from ping endpoint, typically 'pong'") }).describe("Response from OpenCage API ping endpoint.");
|
|
5
|
+
const OpencagePingOpencageOutput = zod.z.object({ message: zod.z.string().describe("Response message from ping endpoint, typically 'pong'").nullable() }).passthrough().describe("Response from OpenCage API ping endpoint.");
|
|
6
6
|
const opencagePingOpencage = require_action.action("OPENCAGE_PING_OPENCAGE", {
|
|
7
7
|
slug: "opencage-ping-opencage",
|
|
8
8
|
name: "Check API Health",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-opencage.cjs","names":["z","action"],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencagePingOpencageInput
|
|
1
|
+
{"version":3,"file":"ping-opencage.cjs","names":["z","action"],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencagePingOpencageInput = z.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\").nullable(),\n}).passthrough().describe(\"Response from OpenCage API ping endpoint.\");\n\nexport const opencagePingOpencage = action(\"OPENCAGE_PING_OPENCAGE\", {\n slug: \"opencage-ping-opencage\",\n name: \"Check API Health\",\n description: \"Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.\",\n input: OpencagePingOpencageInput,\n output: OpencagePingOpencageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACvH,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/ping-opencage.d.ts
|
|
4
|
-
declare const OpencagePingOpencageInput: z.
|
|
5
|
-
declare const OpencagePingOpencageOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const OpencagePingOpencageInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const OpencagePingOpencageOutput: z.ZodObject<{
|
|
6
|
+
message: z.ZodNullable<z.ZodString>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const opencagePingOpencage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { opencagePingOpencage };
|
|
9
11
|
//# sourceMappingURL=ping-opencage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-opencage.d.cts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"ping-opencage.d.cts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/ping-opencage.d.ts
|
|
4
|
-
declare const OpencagePingOpencageInput: z.
|
|
5
|
-
declare const OpencagePingOpencageOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const OpencagePingOpencageInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const OpencagePingOpencageOutput: z.ZodObject<{
|
|
6
|
+
message: z.ZodNullable<z.ZodString>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const opencagePingOpencage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { opencagePingOpencage };
|
|
9
11
|
//# sourceMappingURL=ping-opencage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-opencage.d.mts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"ping-opencage.d.mts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -5,7 +5,7 @@ const opencagePingOpencage = action("OPENCAGE_PING_OPENCAGE", {
|
|
|
5
5
|
name: "Check API Health",
|
|
6
6
|
description: "Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.",
|
|
7
7
|
input: z.object({}).describe("Request parameters for OpenCage API ping health check."),
|
|
8
|
-
output: z.object({ message: z.string().describe("Response message from ping endpoint, typically 'pong'") }).describe("Response from OpenCage API ping endpoint.")
|
|
8
|
+
output: z.object({ message: z.string().describe("Response message from ping endpoint, typically 'pong'").nullable() }).passthrough().describe("Response from OpenCage API ping endpoint.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { opencagePingOpencage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-opencage.mjs","names":[],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencagePingOpencageInput
|
|
1
|
+
{"version":3,"file":"ping-opencage.mjs","names":[],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencagePingOpencageInput = z.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\").nullable(),\n}).passthrough().describe(\"Response from OpenCage API ping endpoint.\");\n\nexport const opencagePingOpencage = action(\"OPENCAGE_PING_OPENCAGE\", {\n slug: \"opencage-ping-opencage\",\n name: \"Check API Health\",\n description: \"Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.\",\n input: OpencagePingOpencageInput,\n output: OpencagePingOpencageOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATuC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAStD;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const opencageCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/opencage",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "generic_key": {
|
|
12
|
+
"label": "OpenCage API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your OpenCage Geocoding API key."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.opencageCatalog = opencageCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const opencageCatalog = {\n \"slug\": \"opencage\",\n \"name\": \"Opencage\",\n \"description\": \"OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/opencage\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const opencageCatalog = {\n \"slug\": \"opencage\",\n \"name\": \"Opencage\",\n \"description\": \"OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/opencage\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_key\": {\n \"label\": \"OpenCage API Key\",\n \"secret\": true,\n \"description\": \"Your OpenCage Geocoding API key.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,eAAe;EACb,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const opencageCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/opencage";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly generic_key: {
|
|
13
|
+
readonly label: "OpenCage API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your OpenCage Geocoding API key.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { opencageCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const opencageCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/opencage";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly generic_key: {
|
|
13
|
+
readonly label: "OpenCage API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your OpenCage Geocoding API key.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { opencageCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const opencageCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/opencage",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "generic_key": {
|
|
12
|
+
"label": "OpenCage API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your OpenCage Geocoding API key."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { opencageCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const opencageCatalog = {\n \"slug\": \"opencage\",\n \"name\": \"Opencage\",\n \"description\": \"OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/opencage\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const opencageCatalog = {\n \"slug\": \"opencage\",\n \"name\": \"Opencage\",\n \"description\": \"OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/opencage\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_key\": {\n \"label\": \"OpenCage API Key\",\n \"secret\": true,\n \"description\": \"Your OpenCage Geocoding API key.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,eAAe;EACb,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/opencage",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|