@keystrokehq/perigon 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/get-articles.cjs +7 -7
- package/dist/actions/get-articles.cjs.map +1 -1
- package/dist/actions/get-articles.d.cts +7 -7
- package/dist/actions/get-articles.d.mts +7 -7
- package/dist/actions/get-articles.mjs +7 -7
- package/dist/actions/get-articles.mjs.map +1 -1
- package/dist/actions/get-companies.cjs +4 -4
- package/dist/actions/get-companies.cjs.map +1 -1
- package/dist/actions/get-companies.d.cts +4 -4
- package/dist/actions/get-companies.d.mts +4 -4
- package/dist/actions/get-companies.mjs +4 -4
- package/dist/actions/get-companies.mjs.map +1 -1
- package/dist/actions/get-journalists.cjs +7 -7
- package/dist/actions/get-journalists.cjs.map +1 -1
- package/dist/actions/get-journalists.d.cts +7 -7
- package/dist/actions/get-journalists.d.mts +7 -7
- package/dist/actions/get-journalists.mjs +7 -7
- package/dist/actions/get-journalists.mjs.map +1 -1
- package/dist/actions/get-sources.cjs +6 -6
- package/dist/actions/get-sources.cjs.map +1 -1
- package/dist/actions/get-sources.d.cts +11 -11
- package/dist/actions/get-sources.d.mts +11 -11
- package/dist/actions/get-sources.mjs +6 -6
- package/dist/actions/get-sources.mjs.map +1 -1
- package/dist/actions/get-stories.cjs +14 -14
- package/dist/actions/get-stories.cjs.map +1 -1
- package/dist/actions/get-stories.d.cts +19 -19
- package/dist/actions/get-stories.d.mts +19 -19
- package/dist/actions/get-stories.mjs +14 -14
- package/dist/actions/get-stories.mjs.map +1 -1
- package/dist/actions/get-topics.cjs +3 -3
- package/dist/actions/get-topics.cjs.map +1 -1
- package/dist/actions/get-topics.d.cts +3 -3
- package/dist/actions/get-topics.d.mts +3 -3
- package/dist/actions/get-topics.mjs +3 -3
- package/dist/actions/get-topics.mjs.map +1 -1
- package/dist/actions/get-wikipedia.cjs +4 -4
- package/dist/actions/get-wikipedia.cjs.map +1 -1
- package/dist/actions/get-wikipedia.d.cts +4 -4
- package/dist/actions/get-wikipedia.d.mts +4 -4
- package/dist/actions/get-wikipedia.mjs +4 -4
- package/dist/actions/get-wikipedia.mjs.map +1 -1
- package/dist/actions/vector-search-articles.cjs +7 -7
- package/dist/actions/vector-search-articles.cjs.map +1 -1
- package/dist/actions/vector-search-articles.d.cts +7 -7
- package/dist/actions/vector-search-articles.d.mts +7 -7
- package/dist/actions/vector-search-articles.mjs +7 -7
- package/dist/actions/vector-search-articles.mjs.map +1 -1
- package/dist/actions/vector-search-wikipedia.cjs +2 -2
- package/dist/actions/vector-search-wikipedia.cjs.map +1 -1
- package/dist/actions/vector-search-wikipedia.d.cts +2 -2
- package/dist/actions/vector-search-wikipedia.d.mts +2 -2
- package/dist/actions/vector-search-wikipedia.mjs +2 -2
- package/dist/actions/vector-search-wikipedia.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -13,11 +13,11 @@ const PerigonGetWikipedia_WikipediaSectionSchema = zod.z.object({
|
|
|
13
13
|
title: zod.z.string().describe("Section title").nullable().optional(),
|
|
14
14
|
textRaw: zod.z.string().describe("Raw text content of the section").nullable().optional(),
|
|
15
15
|
styleLevel: zod.z.number().int().describe("Section heading level").nullable().optional()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const PerigonGetWikipedia_WikidataInstanceOfSchema = zod.z.object({
|
|
18
18
|
label: zod.z.string().describe("Label of the instance type").nullable().optional(),
|
|
19
19
|
wikidataId: zod.z.string().describe("Wikidata ID of the instance type").nullable().optional()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const PerigonGetWikipedia_WikipediaArticleSchema = zod.z.object({
|
|
22
22
|
id: zod.z.string().describe("Unique identifier for the Wikipedia article").nullable().optional(),
|
|
23
23
|
url: zod.z.string().describe("Direct Wikipedia link").nullable(),
|
|
@@ -39,12 +39,12 @@ const PerigonGetWikipedia_WikipediaArticleSchema = zod.z.object({
|
|
|
39
39
|
wikiRevisionId: zod.z.number().int().describe("Wikipedia revision ID").nullable().optional(),
|
|
40
40
|
wikiRevisionTs: zod.z.string().describe("Wikipedia revision timestamp").nullable().optional(),
|
|
41
41
|
wikidataInstanceOf: zod.z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe("Wikidata instance types").nullable().optional()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const PerigonGetWikipediaOutput = zod.z.object({
|
|
44
44
|
status: zod.z.number().int().describe("HTTP status code of the response").nullable(),
|
|
45
45
|
results: zod.z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe("List of Wikipedia articles matching the query"),
|
|
46
46
|
numResults: zod.z.number().int().describe("Total number of articles found").nullable()
|
|
47
|
-
});
|
|
47
|
+
}).passthrough();
|
|
48
48
|
const perigonGetWikipedia = require_action.action("PERIGON_GET_WIKIPEDIA", {
|
|
49
49
|
slug: "perigon-get-wikipedia",
|
|
50
50
|
name: "Get Wikipedia Articles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n});\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n});\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n});\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n});\n\nexport const perigonGetWikipedia = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n}).passthrough();\n\nexport const perigonGetWikipedia = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,GAAGA,IAAAA,EAAE,OAAO,CAAC,CA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C,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ declare const PerigonGetWikipediaOutput: z.ZodObject<{
|
|
|
20
20
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
textRaw: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
styleLevel: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
24
|
topImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
wikiCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
pageviews: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -38,10 +38,10 @@ declare const PerigonGetWikipediaOutput: z.ZodObject<{
|
|
|
38
38
|
wikidataInstanceOf: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
}, z.core.$
|
|
42
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
numResults: z.ZodNullable<z.ZodNumber>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const perigonGetWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
q: string;
|
|
47
47
|
page?: number | undefined;
|
|
@@ -20,7 +20,7 @@ declare const PerigonGetWikipediaOutput: z.ZodObject<{
|
|
|
20
20
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
textRaw: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
styleLevel: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
24
|
topImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
wikiCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
pageviews: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -38,10 +38,10 @@ declare const PerigonGetWikipediaOutput: z.ZodObject<{
|
|
|
38
38
|
wikidataInstanceOf: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
}, z.core.$
|
|
42
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
numResults: z.ZodNullable<z.ZodNumber>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const perigonGetWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
q: string;
|
|
47
47
|
page?: number | undefined;
|
|
@@ -13,11 +13,11 @@ const PerigonGetWikipedia_WikipediaSectionSchema = z.object({
|
|
|
13
13
|
title: z.string().describe("Section title").nullable().optional(),
|
|
14
14
|
textRaw: z.string().describe("Raw text content of the section").nullable().optional(),
|
|
15
15
|
styleLevel: z.number().int().describe("Section heading level").nullable().optional()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({
|
|
18
18
|
label: z.string().describe("Label of the instance type").nullable().optional(),
|
|
19
19
|
wikidataId: z.string().describe("Wikidata ID of the instance type").nullable().optional()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const PerigonGetWikipedia_WikipediaArticleSchema = z.object({
|
|
22
22
|
id: z.string().describe("Unique identifier for the Wikipedia article").nullable().optional(),
|
|
23
23
|
url: z.string().describe("Direct Wikipedia link").nullable(),
|
|
@@ -39,7 +39,7 @@ const PerigonGetWikipedia_WikipediaArticleSchema = z.object({
|
|
|
39
39
|
wikiRevisionId: z.number().int().describe("Wikipedia revision ID").nullable().optional(),
|
|
40
40
|
wikiRevisionTs: z.string().describe("Wikipedia revision timestamp").nullable().optional(),
|
|
41
41
|
wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe("Wikidata instance types").nullable().optional()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const perigonGetWikipedia = action("PERIGON_GET_WIKIPEDIA", {
|
|
44
44
|
slug: "perigon-get-wikipedia",
|
|
45
45
|
name: "Get Wikipedia Articles",
|
|
@@ -49,7 +49,7 @@ const perigonGetWikipedia = action("PERIGON_GET_WIKIPEDIA", {
|
|
|
49
49
|
status: z.number().int().describe("HTTP status code of the response").nullable(),
|
|
50
50
|
results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe("List of Wikipedia articles matching the query"),
|
|
51
51
|
numResults: z.number().int().describe("Total number of articles found").nullable()
|
|
52
|
-
})
|
|
52
|
+
}).passthrough()
|
|
53
53
|
});
|
|
54
54
|
//#endregion
|
|
55
55
|
export { perigonGetWikipedia };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wikipedia.mjs","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n});\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n});\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n});\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n});\n\nexport const perigonGetWikipedia = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-wikipedia.mjs","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n}).passthrough();\n\nexport const perigonGetWikipedia = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CA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,CAAC,CAAC,SAAS;CACnE,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,oBAAoB,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuC,EAAE,OAAO;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,+CAA+C;EACrH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -15,13 +15,13 @@ const PerigonVectorSearchArticlesInput = zod.z.object({
|
|
|
15
15
|
const PerigonVectorSearchArticles_SourceLocationSchema = zod.z.object({
|
|
16
16
|
city: zod.z.string().describe("City of the source location").nullable().optional(),
|
|
17
17
|
country: zod.z.string().describe("Country code of the source location").nullable().optional()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PerigonVectorSearchArticles_ArticleSourceSchema = zod.z.object({
|
|
20
20
|
domain: zod.z.string().describe("Domain of the article source").nullable(),
|
|
21
21
|
location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional()
|
|
22
|
-
});
|
|
23
|
-
const PerigonVectorSearchArticles_TopicSchema = zod.z.object({ name: zod.z.string().describe("Name of the topic").nullable() });
|
|
24
|
-
const PerigonVectorSearchArticles_CategorySchema = zod.z.object({ name: zod.z.string().describe("Name of the category").nullable() });
|
|
22
|
+
}).passthrough();
|
|
23
|
+
const PerigonVectorSearchArticles_TopicSchema = zod.z.object({ name: zod.z.string().describe("Name of the topic").nullable() }).passthrough();
|
|
24
|
+
const PerigonVectorSearchArticles_CategorySchema = zod.z.object({ name: zod.z.string().describe("Name of the category").nullable() }).passthrough();
|
|
25
25
|
const PerigonVectorSearchArticles_ArticleDataSchema = zod.z.object({
|
|
26
26
|
url: zod.z.string().describe("Canonical URL of the article").nullable(),
|
|
27
27
|
title: zod.z.string().describe("Article title").nullable(),
|
|
@@ -35,15 +35,15 @@ const PerigonVectorSearchArticles_ArticleDataSchema = zod.z.object({
|
|
|
35
35
|
language: zod.z.string().describe("Language code of the article").nullable().optional(),
|
|
36
36
|
articleId: zod.z.string().describe("Unique article identifier").nullable(),
|
|
37
37
|
categories: zod.z.array(PerigonVectorSearchArticles_CategorySchema).describe("Categories of the article").nullable().optional()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const PerigonVectorSearchArticles_VectorSearchResultSchema = zod.z.object({
|
|
40
40
|
data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),
|
|
41
41
|
score: zod.z.number().describe("Relevance score of the article (higher is more relevant)").nullable()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const PerigonVectorSearchArticlesOutput = zod.z.object({
|
|
44
44
|
status: zod.z.number().int().describe("HTTP status code of the response").nullable(),
|
|
45
45
|
results: zod.z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe("List of search results with scores and article data")
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const perigonVectorSearchArticles = require_action.action("PERIGON_VECTOR_SEARCH_ARTICLES", {
|
|
48
48
|
slug: "perigon-vector-search-articles",
|
|
49
49
|
name: "Vector Search Articles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-articles.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n});\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n});\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n});\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n});\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n});\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n});\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n});\n\nexport const perigonVectorSearchArticles = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO;EACjB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC;
|
|
1
|
+
{"version":3,"file":"vector-search-articles.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n}).passthrough();\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n}).passthrough();\n\nexport const perigonVectorSearchArticles = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO;EACjB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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
|
|
25
25
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
topics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>>;
|
|
31
31
|
addDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
pubDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -37,11 +37,11 @@ declare const PerigonVectorSearchArticlesOutput: z.ZodObject<{
|
|
|
37
37
|
articleId: z.ZodNullable<z.ZodString>;
|
|
38
38
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
name: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
score: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const perigonVectorSearchArticles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
query: string;
|
|
47
47
|
top_k?: number | undefined;
|
|
@@ -23,11 +23,11 @@ declare const PerigonVectorSearchArticlesOutput: z.ZodObject<{
|
|
|
23
23
|
location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
24
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
topics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>>;
|
|
31
31
|
addDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
pubDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -37,11 +37,11 @@ declare const PerigonVectorSearchArticlesOutput: z.ZodObject<{
|
|
|
37
37
|
articleId: z.ZodNullable<z.ZodString>;
|
|
38
38
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
name: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
score: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const perigonVectorSearchArticles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
query: string;
|
|
47
47
|
top_k?: number | undefined;
|
|
@@ -15,13 +15,13 @@ const PerigonVectorSearchArticlesInput = z.object({
|
|
|
15
15
|
const PerigonVectorSearchArticles_SourceLocationSchema = z.object({
|
|
16
16
|
city: z.string().describe("City of the source location").nullable().optional(),
|
|
17
17
|
country: z.string().describe("Country code of the source location").nullable().optional()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PerigonVectorSearchArticles_ArticleSourceSchema = z.object({
|
|
20
20
|
domain: z.string().describe("Domain of the article source").nullable(),
|
|
21
21
|
location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional()
|
|
22
|
-
});
|
|
23
|
-
const PerigonVectorSearchArticles_TopicSchema = z.object({ name: z.string().describe("Name of the topic").nullable() });
|
|
24
|
-
const PerigonVectorSearchArticles_CategorySchema = z.object({ name: z.string().describe("Name of the category").nullable() });
|
|
22
|
+
}).passthrough();
|
|
23
|
+
const PerigonVectorSearchArticles_TopicSchema = z.object({ name: z.string().describe("Name of the topic").nullable() }).passthrough();
|
|
24
|
+
const PerigonVectorSearchArticles_CategorySchema = z.object({ name: z.string().describe("Name of the category").nullable() }).passthrough();
|
|
25
25
|
const PerigonVectorSearchArticles_ArticleDataSchema = z.object({
|
|
26
26
|
url: z.string().describe("Canonical URL of the article").nullable(),
|
|
27
27
|
title: z.string().describe("Article title").nullable(),
|
|
@@ -35,11 +35,11 @@ const PerigonVectorSearchArticles_ArticleDataSchema = z.object({
|
|
|
35
35
|
language: z.string().describe("Language code of the article").nullable().optional(),
|
|
36
36
|
articleId: z.string().describe("Unique article identifier").nullable(),
|
|
37
37
|
categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe("Categories of the article").nullable().optional()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({
|
|
40
40
|
data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),
|
|
41
41
|
score: z.number().describe("Relevance score of the article (higher is more relevant)").nullable()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const perigonVectorSearchArticles = action("PERIGON_VECTOR_SEARCH_ARTICLES", {
|
|
44
44
|
slug: "perigon-vector-search-articles",
|
|
45
45
|
name: "Vector Search Articles",
|
|
@@ -48,7 +48,7 @@ const perigonVectorSearchArticles = action("PERIGON_VECTOR_SEARCH_ARTICLES", {
|
|
|
48
48
|
output: z.object({
|
|
49
49
|
status: z.number().int().describe("HTTP status code of the response").nullable(),
|
|
50
50
|
results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe("List of search results with scores and article data")
|
|
51
|
-
})
|
|
51
|
+
}).passthrough()
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { perigonVectorSearchArticles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-articles.mjs","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n});\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n});\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n});\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n});\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n});\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n});\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n});\n\nexport const perigonVectorSearchArticles = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO;EACjB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3F,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC;
|
|
1
|
+
{"version":3,"file":"vector-search-articles.mjs","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n}).passthrough();\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n}).passthrough();\n\nexport const perigonVectorSearchArticles = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO;EACjB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3F,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,kDAAkD,EAAE,OAAO;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,UAAU,iDAAiD,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;A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,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,8CAA8C,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,qDAAqD;CACvI,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -12,8 +12,8 @@ const PerigonVectorSearchWikipedia_WikipediaArticleSchema = zod.z.object({
|
|
|
12
12
|
title: zod.z.string().describe("Title of the Wikipedia article").nullable(),
|
|
13
13
|
context: zod.z.string().describe("Additional context passage (if requested)").nullable().optional(),
|
|
14
14
|
snippet: zod.z.string().describe("Passage or summary of the article").nullable()
|
|
15
|
-
}).describe("One matched Wikipedia article from vector search.");
|
|
16
|
-
const PerigonVectorSearchWikipediaOutput = zod.z.object({ results: zod.z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).describe("Response schema for Wikipedia vector search.");
|
|
15
|
+
}).passthrough().describe("One matched Wikipedia article from vector search.");
|
|
16
|
+
const PerigonVectorSearchWikipediaOutput = zod.z.object({ results: zod.z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).passthrough().describe("Response schema for Wikipedia vector search.");
|
|
17
17
|
const perigonVectorSearchWikipedia = require_action.action("PERIGON_VECTOR_SEARCH_WIKIPEDIA", {
|
|
18
18
|
slug: "perigon-vector-search-wikipedia",
|
|
19
19
|
name: "Vector Search Wikipedia",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"vector-search-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).passthrough().describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).passthrough().describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,8 +13,8 @@ declare const PerigonVectorSearchWikipediaOutput: z.ZodObject<{
|
|
|
13
13
|
title: z.ZodNullable<z.ZodString>;
|
|
14
14
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
snippet: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const perigonVectorSearchWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
query: string;
|
|
20
20
|
limit?: number | undefined;
|
|
@@ -13,8 +13,8 @@ declare const PerigonVectorSearchWikipediaOutput: z.ZodObject<{
|
|
|
13
13
|
title: z.ZodNullable<z.ZodString>;
|
|
14
14
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
snippet: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const perigonVectorSearchWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
query: string;
|
|
20
20
|
limit?: number | undefined;
|
|
@@ -12,13 +12,13 @@ const PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({
|
|
|
12
12
|
title: z.string().describe("Title of the Wikipedia article").nullable(),
|
|
13
13
|
context: z.string().describe("Additional context passage (if requested)").nullable().optional(),
|
|
14
14
|
snippet: z.string().describe("Passage or summary of the article").nullable()
|
|
15
|
-
}).describe("One matched Wikipedia article from vector search.");
|
|
15
|
+
}).passthrough().describe("One matched Wikipedia article from vector search.");
|
|
16
16
|
const perigonVectorSearchWikipedia = action("PERIGON_VECTOR_SEARCH_WIKIPEDIA", {
|
|
17
17
|
slug: "perigon-vector-search-wikipedia",
|
|
18
18
|
name: "Vector Search Wikipedia",
|
|
19
19
|
description: "Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.",
|
|
20
20
|
input: PerigonVectorSearchWikipediaInput,
|
|
21
|
-
output: z.object({ results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).describe("Response schema for Wikipedia vector search.")
|
|
21
|
+
output: z.object({ results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).passthrough().describe("Response schema for Wikipedia vector search.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { perigonVectorSearchWikipedia };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-wikipedia.mjs","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,sDAAsD,EAAE,OAAO;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"vector-search-wikipedia.mjs","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).passthrough().describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).passthrough().describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,sDAAsD,EAAE,OAAO;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const perigonCatalog = {
|
|
|
8
8
|
"logo": "https://logos.composio.dev/api/perigon",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
|
-
"credentialFields": { "
|
|
11
|
+
"credentialFields": { "generic_api_key": {
|
|
12
12
|
"label": "Perigon API Key",
|
|
13
13
|
"secret": true,
|
|
14
14
|
"description": "Your Perigon API key obtained from your account dashboard."
|
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 perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"Perigon API Key\",\n \"secret\": true,\n \"description\": \"Your Perigon API key obtained from your account dashboard.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ declare const perigonCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "Perigon API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your Perigon API key obtained from your account dashboard.";
|
package/dist/catalog.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare const perigonCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "Perigon API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your Perigon API key obtained from your account dashboard.";
|
package/dist/catalog.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const perigonCatalog = {
|
|
|
8
8
|
"logo": "https://logos.composio.dev/api/perigon",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
|
-
"credentialFields": { "
|
|
11
|
+
"credentialFields": { "generic_api_key": {
|
|
12
12
|
"label": "Perigon API Key",
|
|
13
13
|
"secret": true,
|
|
14
14
|
"description": "Your Perigon API key obtained from your account dashboard."
|
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 perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"Perigon API Key\",\n \"secret\": true,\n \"description\": \"Your Perigon API key obtained from your account dashboard.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|