@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
|
@@ -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-xml.d.ts
|
|
@@ -19,31 +21,7 @@ declare const OpencageGeocodeXmlOutput: z.ZodObject<{
|
|
|
19
21
|
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
22
|
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const opencageGeocodeXml:
|
|
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<"opencage", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
generic_key: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
41
|
-
connectionId: z.ZodString;
|
|
42
|
-
entityId: z.ZodString;
|
|
43
|
-
instanceId: z.ZodString;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
generic_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const opencageGeocodeXml: AppAction<typeof OpencageGeocodeXmlInput, typeof OpencageGeocodeXmlOutput, typeof opencage.credential>;
|
|
47
25
|
//#endregion
|
|
48
26
|
export { opencageGeocodeXml };
|
|
49
27
|
//# sourceMappingURL=geocode-xml.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocode-xml.d.mts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geocode-xml.d.mts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"geocode-xml.mjs","names":[],"sources":["../../src/actions/geocode-xml.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 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: AppAction<\n typeof OpencageGeocodeXmlInput,\n typeof OpencageGeocodeXmlOutput,\n typeof opencage.credential\n> = 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":";;;AAyBA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BqC,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,CAAC,SAAS;EACzJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAClJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EACnI,UAAU,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAChJ,WAAW,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACpJ,aAAa,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;EACtK,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;EACpK,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC5K,CAAC,CAAC,CAAC,SAAS,4GAeH;CACP,QAfsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EACjJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"ping-opencage.cjs","names":["z","action"],"sources":["../../src/actions/ping-opencage.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 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: AppAction<\n typeof OpencagePingOpencageInput,\n typeof OpencagePingOpencageOutput,\n typeof opencage.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,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/ping-opencage.d.ts
|
|
@@ -5,19 +7,7 @@ declare const OpencagePingOpencageInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const OpencagePingOpencageOutput: z.ZodObject<{
|
|
6
8
|
message: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const opencagePingOpencage:
|
|
9
|
-
connectionId: z.ZodString;
|
|
10
|
-
entityId: z.ZodString;
|
|
11
|
-
instanceId: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
generic_key: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>;
|
|
10
|
+
declare const opencagePingOpencage: AppAction<typeof OpencagePingOpencageInput, typeof OpencagePingOpencageOutput, typeof opencage.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { opencagePingOpencage };
|
|
23
13
|
//# sourceMappingURL=ping-opencage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-opencage.d.cts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ping-opencage.d.cts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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/ping-opencage.d.ts
|
|
@@ -5,19 +7,7 @@ declare const OpencagePingOpencageInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const OpencagePingOpencageOutput: z.ZodObject<{
|
|
6
8
|
message: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const opencagePingOpencage:
|
|
9
|
-
connectionId: z.ZodString;
|
|
10
|
-
entityId: z.ZodString;
|
|
11
|
-
instanceId: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
generic_key: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>;
|
|
10
|
+
declare const opencagePingOpencage: AppAction<typeof OpencagePingOpencageInput, typeof OpencagePingOpencageOutput, typeof opencage.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { opencagePingOpencage };
|
|
23
13
|
//# sourceMappingURL=ping-opencage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-opencage.d.mts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ping-opencage.d.mts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"ping-opencage.mjs","names":[],"sources":["../../src/actions/ping-opencage.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 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: AppAction<\n typeof OpencagePingOpencageInput,\n typeof OpencagePingOpencageOutput,\n typeof opencage.credential\n> = 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":";;;AAWA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAatD;CACP,QAbwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_key: require("zod").z.string() };
|
|
4
4
|
const opencage = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "opencage",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.opencage = opencage;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const opencage = defineApp({\n slug: \"opencage\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_key: z.string(),\n};\n\nexport const opencage: KeystrokeApp<\"opencage\", typeof credential> = defineApp({\n slug: \"opencage\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,0BAAaA,CAAAA,CAAAA,EAAE,OAAO,EACxB;AAEA,MAAa,YAAA,GAAA,2BAAA,UAAA,CAAkE;CAC7E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const opencage: KeystrokeApp<"opencage", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { opencage };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,oBAAoB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const opencage: KeystrokeApp<"opencage", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { opencage };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,oBAAoB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const opencage = defineApp({\n slug: \"opencage\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_key: z.string(),\n};\n\nexport const opencage: KeystrokeApp<\"opencage\", typeof credential> = defineApp({\n slug: \"opencage\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,WAAwD,UAAU;CAC7E,MAAM;CACN,MAAM;CACN,cANA,aAAa,EAAE,OAAO,EAMtB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { opencage } from "./app.cjs";
|
|
1
2
|
import { opencageGeocodeForward } from "./actions/geocode-forward.cjs";
|
|
2
3
|
import { opencageGeocodeGeojson } from "./actions/geocode-geojson.cjs";
|
|
3
4
|
import { opencageGeocodeGeojsonp } from "./actions/geocode-geojsonp.cjs";
|
|
@@ -5,6 +6,5 @@ import { opencageGeocodeGoogleV3Json } from "./actions/geocode-google-v3-json.cj
|
|
|
5
6
|
import { opencageGeocodeReverse } from "./actions/geocode-reverse.cjs";
|
|
6
7
|
import { opencageGeocodeXml } from "./actions/geocode-xml.cjs";
|
|
7
8
|
import { opencagePingOpencage } from "./actions/ping-opencage.cjs";
|
|
8
|
-
import { opencage } from "./app.cjs";
|
|
9
9
|
import { opencageCatalog } from "./catalog.cjs";
|
|
10
10
|
export { opencage, opencageCatalog, opencageGeocodeForward, opencageGeocodeGeojson, opencageGeocodeGeojsonp, opencageGeocodeGoogleV3Json, opencageGeocodeReverse, opencageGeocodeXml, opencagePingOpencage };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { opencage } from "./app.mjs";
|
|
1
2
|
import { opencageGeocodeForward } from "./actions/geocode-forward.mjs";
|
|
2
3
|
import { opencageGeocodeGeojson } from "./actions/geocode-geojson.mjs";
|
|
3
4
|
import { opencageGeocodeGeojsonp } from "./actions/geocode-geojsonp.mjs";
|
|
@@ -5,6 +6,5 @@ import { opencageGeocodeGoogleV3Json } from "./actions/geocode-google-v3-json.mj
|
|
|
5
6
|
import { opencageGeocodeReverse } from "./actions/geocode-reverse.mjs";
|
|
6
7
|
import { opencageGeocodeXml } from "./actions/geocode-xml.mjs";
|
|
7
8
|
import { opencagePingOpencage } from "./actions/ping-opencage.mjs";
|
|
8
|
-
import { opencage } from "./app.mjs";
|
|
9
9
|
import { opencageCatalog } from "./catalog.mjs";
|
|
10
10
|
export { opencage, opencageCatalog, opencageGeocodeForward, opencageGeocodeGeojson, opencageGeocodeGeojsonp, opencageGeocodeGoogleV3Json, opencageGeocodeReverse, opencageGeocodeXml, opencagePingOpencage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/opencage",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
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": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|