@keystrokehq/perigon 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/get-articles.cjs +94 -0
- package/dist/actions/get-articles.cjs.map +1 -0
- package/dist/actions/get-articles.d.cts +9 -0
- package/dist/actions/get-articles.d.cts.map +1 -0
- package/dist/actions/get-articles.d.mts +9 -0
- package/dist/actions/get-articles.d.mts.map +1 -0
- package/dist/actions/get-articles.mjs +93 -0
- package/dist/actions/get-articles.mjs.map +1 -0
- package/dist/actions/get-companies.cjs +73 -0
- package/dist/actions/get-companies.cjs.map +1 -0
- package/dist/actions/get-companies.d.cts +9 -0
- package/dist/actions/get-companies.d.cts.map +1 -0
- package/dist/actions/get-companies.d.mts +9 -0
- package/dist/actions/get-companies.d.mts.map +1 -0
- package/dist/actions/get-companies.mjs +72 -0
- package/dist/actions/get-companies.mjs.map +1 -0
- package/dist/actions/get-journalists.cjs +72 -0
- package/dist/actions/get-journalists.cjs.map +1 -0
- package/dist/actions/get-journalists.d.cts +9 -0
- package/dist/actions/get-journalists.d.cts.map +1 -0
- package/dist/actions/get-journalists.d.mts +9 -0
- package/dist/actions/get-journalists.d.mts.map +1 -0
- package/dist/actions/get-journalists.mjs +71 -0
- package/dist/actions/get-journalists.mjs.map +1 -0
- package/dist/actions/get-sources.cjs +82 -0
- package/dist/actions/get-sources.cjs.map +1 -0
- package/dist/actions/get-sources.d.cts +9 -0
- package/dist/actions/get-sources.d.cts.map +1 -0
- package/dist/actions/get-sources.d.mts +9 -0
- package/dist/actions/get-sources.d.mts.map +1 -0
- package/dist/actions/get-sources.mjs +81 -0
- package/dist/actions/get-sources.mjs.map +1 -0
- package/dist/actions/get-stories.cjs +123 -0
- package/dist/actions/get-stories.cjs.map +1 -0
- package/dist/actions/get-stories.d.cts +9 -0
- package/dist/actions/get-stories.d.cts.map +1 -0
- package/dist/actions/get-stories.d.mts +9 -0
- package/dist/actions/get-stories.d.mts.map +1 -0
- package/dist/actions/get-stories.mjs +122 -0
- package/dist/actions/get-stories.mjs.map +1 -0
- package/dist/actions/get-topics.cjs +30 -0
- package/dist/actions/get-topics.cjs.map +1 -0
- package/dist/actions/get-topics.d.cts +9 -0
- package/dist/actions/get-topics.d.cts.map +1 -0
- package/dist/actions/get-topics.d.mts +9 -0
- package/dist/actions/get-topics.d.mts.map +1 -0
- package/dist/actions/get-topics.mjs +29 -0
- package/dist/actions/get-topics.mjs.map +1 -0
- package/dist/actions/get-wikipedia.cjs +58 -0
- package/dist/actions/get-wikipedia.cjs.map +1 -0
- package/dist/actions/get-wikipedia.d.cts +9 -0
- package/dist/actions/get-wikipedia.d.cts.map +1 -0
- package/dist/actions/get-wikipedia.d.mts +9 -0
- package/dist/actions/get-wikipedia.d.mts.map +1 -0
- package/dist/actions/get-wikipedia.mjs +57 -0
- package/dist/actions/get-wikipedia.mjs.map +1 -0
- package/dist/actions/index.cjs +19 -0
- package/dist/actions/index.d.cts +10 -0
- package/dist/actions/index.d.mts +10 -0
- package/dist/actions/index.mjs +10 -0
- package/dist/actions/vector-search-articles.cjs +57 -0
- package/dist/actions/vector-search-articles.cjs.map +1 -0
- package/dist/actions/vector-search-articles.d.cts +9 -0
- package/dist/actions/vector-search-articles.d.cts.map +1 -0
- package/dist/actions/vector-search-articles.d.mts +9 -0
- package/dist/actions/vector-search-articles.d.mts.map +1 -0
- package/dist/actions/vector-search-articles.mjs +56 -0
- package/dist/actions/vector-search-articles.mjs.map +1 -0
- package/dist/actions/vector-search-wikipedia.cjs +27 -0
- package/dist/actions/vector-search-wikipedia.cjs.map +1 -0
- package/dist/actions/vector-search-wikipedia.d.cts +9 -0
- package/dist/actions/vector-search-wikipedia.d.cts.map +1 -0
- package/dist/actions/vector-search-wikipedia.d.mts +9 -0
- package/dist/actions/vector-search-wikipedia.d.mts.map +1 -0
- package/dist/actions/vector-search-wikipedia.mjs +26 -0
- package/dist/actions/vector-search-wikipedia.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +24 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.mjs +13 -0
- package/package.json +49 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-journalists.ts
|
|
4
|
+
const PerigonGetJournalistsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Number of items to return (default: 10, max: 100)").optional(),
|
|
6
|
+
query: zod.z.string().describe("Search string for journalist name").optional(),
|
|
7
|
+
offset: zod.z.number().int().describe("Number of items to skip for pagination").optional(),
|
|
8
|
+
outlet: zod.z.string().describe("Filter journalists by outlet name").optional()
|
|
9
|
+
});
|
|
10
|
+
const PerigonGetJournalists_LabelCountSchema = zod.z.object({
|
|
11
|
+
name: zod.z.string().describe("Label name"),
|
|
12
|
+
count: zod.z.number().int().describe("Count of articles with this label")
|
|
13
|
+
});
|
|
14
|
+
const PerigonGetJournalists_TopicCountSchema = zod.z.object({
|
|
15
|
+
name: zod.z.string().describe("Topic name"),
|
|
16
|
+
count: zod.z.number().int().describe("Count of articles on this topic")
|
|
17
|
+
});
|
|
18
|
+
const PerigonGetJournalists_SourceCountSchema = zod.z.object({
|
|
19
|
+
name: zod.z.string().describe("Source name"),
|
|
20
|
+
count: zod.z.number().int().describe("Count of articles from this source")
|
|
21
|
+
});
|
|
22
|
+
const PerigonGetJournalists_CountryCountSchema = zod.z.object({
|
|
23
|
+
name: zod.z.string().describe("Country code"),
|
|
24
|
+
count: zod.z.number().int().describe("Count of articles from this country")
|
|
25
|
+
});
|
|
26
|
+
const PerigonGetJournalists_CategoryCountSchema = zod.z.object({
|
|
27
|
+
name: zod.z.string().describe("Category name"),
|
|
28
|
+
count: zod.z.number().int().describe("Count of articles in this category")
|
|
29
|
+
});
|
|
30
|
+
const PerigonGetJournalists_JournalistProfileSchema = zod.z.object({
|
|
31
|
+
id: zod.z.string().describe("Unique journalist identifier"),
|
|
32
|
+
name: zod.z.string().describe("Journalist name"),
|
|
33
|
+
title: zod.z.string().describe("Professional title of journalist").nullable().optional(),
|
|
34
|
+
blogUrl: zod.z.string().describe("Blog URL").nullable().optional(),
|
|
35
|
+
fullName: zod.z.string().describe("Journalist full name").nullable().optional(),
|
|
36
|
+
headline: zod.z.string().describe("Professional headline").nullable().optional(),
|
|
37
|
+
imageUrl: zod.z.string().describe("URL to journalist's image").nullable().optional(),
|
|
38
|
+
locations: zod.z.array(zod.z.string()).describe("Locations of journalist").nullable().optional(),
|
|
39
|
+
topLabels: zod.z.array(PerigonGetJournalists_LabelCountSchema).describe("Top labels").nullable().optional(),
|
|
40
|
+
topTopics: zod.z.array(PerigonGetJournalists_TopicCountSchema).describe("Top topics covered").nullable().optional(),
|
|
41
|
+
tumblrUrl: zod.z.string().describe("Tumblr URL").nullable().optional(),
|
|
42
|
+
updatedAt: zod.z.string().describe("Last updated timestamp").nullable().optional(),
|
|
43
|
+
topSources: zod.z.array(PerigonGetJournalists_SourceCountSchema).describe("Top sources").nullable().optional(),
|
|
44
|
+
twitterBio: zod.z.string().describe("Twitter bio").nullable().optional(),
|
|
45
|
+
websiteUrl: zod.z.string().describe("Personal website URL").nullable().optional(),
|
|
46
|
+
youtubeUrl: zod.z.string().describe("YouTube channel URL").nullable().optional(),
|
|
47
|
+
description: zod.z.string().describe("Brief biography or summary").nullable().optional(),
|
|
48
|
+
facebookUrl: zod.z.string().describe("Facebook profile URL").nullable().optional(),
|
|
49
|
+
linkedinUrl: zod.z.string().describe("LinkedIn profile URL").nullable().optional(),
|
|
50
|
+
instagramUrl: zod.z.string().describe("Instagram profile URL").nullable().optional(),
|
|
51
|
+
topCountries: zod.z.array(PerigonGetJournalists_CountryCountSchema).describe("Top countries").nullable().optional(),
|
|
52
|
+
topCategories: zod.z.array(PerigonGetJournalists_CategoryCountSchema).describe("Top categories").nullable().optional(),
|
|
53
|
+
twitterHandle: zod.z.string().describe("Twitter handle").nullable().optional(),
|
|
54
|
+
avgMonthlyPosts: zod.z.number().int().describe("Average monthly posts").nullable().optional(),
|
|
55
|
+
linkedinFollowers: zod.z.number().int().describe("LinkedIn followers count").nullable().optional(),
|
|
56
|
+
linkedinConnections: zod.z.number().int().describe("LinkedIn connections count").nullable().optional()
|
|
57
|
+
});
|
|
58
|
+
const PerigonGetJournalistsOutput = zod.z.object({
|
|
59
|
+
numResults: zod.z.number().int().describe("Total number of matching journalists"),
|
|
60
|
+
journalists: zod.z.array(PerigonGetJournalists_JournalistProfileSchema).describe("Array of journalist profiles returned")
|
|
61
|
+
});
|
|
62
|
+
const perigonGetJournalists = require_action.action("PERIGON_GET_JOURNALISTS", {
|
|
63
|
+
slug: "perigon-get-journalists",
|
|
64
|
+
name: "Get Journalists",
|
|
65
|
+
description: "Tool to retrieve journalist profiles including title, Twitter handle, bio, and location. Use when you need detailed journalist info to enrich content with author metadata.",
|
|
66
|
+
input: PerigonGetJournalistsInput,
|
|
67
|
+
output: PerigonGetJournalistsOutput
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
exports.perigonGetJournalists = perigonGetJournalists;
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=get-journalists.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-journalists.cjs","names":["z","action"],"sources":["../../src/actions/get-journalists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetJournalistsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of items to return (default: 10, max: 100)\").optional(),\n query: z.string().describe(\"Search string for journalist name\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination\").optional(),\n outlet: z.string().describe(\"Filter journalists by outlet name\").optional(),\n});\nconst PerigonGetJournalists_LabelCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Label name\"),\n count: z.number().int().describe(\"Count of articles with this label\"),\n});\nconst PerigonGetJournalists_TopicCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Topic name\"),\n count: z.number().int().describe(\"Count of articles on this topic\"),\n});\nconst PerigonGetJournalists_SourceCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Source name\"),\n count: z.number().int().describe(\"Count of articles from this source\"),\n});\nconst PerigonGetJournalists_CountryCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Country code\"),\n count: z.number().int().describe(\"Count of articles from this country\"),\n});\nconst PerigonGetJournalists_CategoryCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Category name\"),\n count: z.number().int().describe(\"Count of articles in this category\"),\n});\nconst PerigonGetJournalists_JournalistProfileSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique journalist identifier\"),\n name: z.string().describe(\"Journalist name\"),\n title: z.string().describe(\"Professional title of journalist\").nullable().optional(),\n blogUrl: z.string().describe(\"Blog URL\").nullable().optional(),\n fullName: z.string().describe(\"Journalist full name\").nullable().optional(),\n headline: z.string().describe(\"Professional headline\").nullable().optional(),\n imageUrl: z.string().describe(\"URL to journalist's image\").nullable().optional(),\n locations: z.array(z.string()).describe(\"Locations of journalist\").nullable().optional(),\n topLabels: z.array(PerigonGetJournalists_LabelCountSchema).describe(\"Top labels\").nullable().optional(),\n topTopics: z.array(PerigonGetJournalists_TopicCountSchema).describe(\"Top topics covered\").nullable().optional(),\n tumblrUrl: z.string().describe(\"Tumblr URL\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp\").nullable().optional(),\n topSources: z.array(PerigonGetJournalists_SourceCountSchema).describe(\"Top sources\").nullable().optional(),\n twitterBio: z.string().describe(\"Twitter bio\").nullable().optional(),\n websiteUrl: z.string().describe(\"Personal website URL\").nullable().optional(),\n youtubeUrl: z.string().describe(\"YouTube channel URL\").nullable().optional(),\n description: z.string().describe(\"Brief biography or summary\").nullable().optional(),\n facebookUrl: z.string().describe(\"Facebook profile URL\").nullable().optional(),\n linkedinUrl: z.string().describe(\"LinkedIn profile URL\").nullable().optional(),\n instagramUrl: z.string().describe(\"Instagram profile URL\").nullable().optional(),\n topCountries: z.array(PerigonGetJournalists_CountryCountSchema).describe(\"Top countries\").nullable().optional(),\n topCategories: z.array(PerigonGetJournalists_CategoryCountSchema).describe(\"Top categories\").nullable().optional(),\n twitterHandle: z.string().describe(\"Twitter handle\").nullable().optional(),\n avgMonthlyPosts: z.number().int().describe(\"Average monthly posts\").nullable().optional(),\n linkedinFollowers: z.number().int().describe(\"LinkedIn followers count\").nullable().optional(),\n linkedinConnections: z.number().int().describe(\"LinkedIn connections count\").nullable().optional(),\n});\nexport const PerigonGetJournalistsOutput: z.ZodTypeAny = z.object({\n numResults: z.number().int().describe(\"Total number of matching journalists\"),\n journalists: z.array(PerigonGetJournalists_JournalistProfileSchema).describe(\"Array of journalist profiles returned\"),\n});\n\nexport const perigonGetJournalists = action(\"PERIGON_GET_JOURNALISTS\", {\n slug: \"perigon-get-journalists\",\n name: \"Get Journalists\",\n description: \"Tool to retrieve journalist profiles including title, Twitter handle, bio, and location. Use when you need detailed journalist info to enrich content with author metadata.\",\n input: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AC,SAAS,CAAC,CAAC,SAAS;CACxF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC5E,aAAaA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,uCAAuC;AACtH,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-journalists.d.ts
|
|
4
|
+
declare const PerigonGetJournalistsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PerigonGetJournalistsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const perigonGetJournalists: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { perigonGetJournalists };
|
|
9
|
+
//# sourceMappingURL=get-journalists.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-journalists.d.cts","names":[],"sources":["../../src/actions/get-journalists.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAKzC;AAAA,cAiDW,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-journalists.d.ts
|
|
4
|
+
declare const PerigonGetJournalistsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PerigonGetJournalistsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const perigonGetJournalists: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { perigonGetJournalists };
|
|
9
|
+
//# sourceMappingURL=get-journalists.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-journalists.d.mts","names":[],"sources":["../../src/actions/get-journalists.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAKzC;AAAA,cAiDW,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-journalists.ts
|
|
4
|
+
const PerigonGetJournalistsInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Number of items to return (default: 10, max: 100)").optional(),
|
|
6
|
+
query: z.string().describe("Search string for journalist name").optional(),
|
|
7
|
+
offset: z.number().int().describe("Number of items to skip for pagination").optional(),
|
|
8
|
+
outlet: z.string().describe("Filter journalists by outlet name").optional()
|
|
9
|
+
});
|
|
10
|
+
const PerigonGetJournalists_LabelCountSchema = z.object({
|
|
11
|
+
name: z.string().describe("Label name"),
|
|
12
|
+
count: z.number().int().describe("Count of articles with this label")
|
|
13
|
+
});
|
|
14
|
+
const PerigonGetJournalists_TopicCountSchema = z.object({
|
|
15
|
+
name: z.string().describe("Topic name"),
|
|
16
|
+
count: z.number().int().describe("Count of articles on this topic")
|
|
17
|
+
});
|
|
18
|
+
const PerigonGetJournalists_SourceCountSchema = z.object({
|
|
19
|
+
name: z.string().describe("Source name"),
|
|
20
|
+
count: z.number().int().describe("Count of articles from this source")
|
|
21
|
+
});
|
|
22
|
+
const PerigonGetJournalists_CountryCountSchema = z.object({
|
|
23
|
+
name: z.string().describe("Country code"),
|
|
24
|
+
count: z.number().int().describe("Count of articles from this country")
|
|
25
|
+
});
|
|
26
|
+
const PerigonGetJournalists_CategoryCountSchema = z.object({
|
|
27
|
+
name: z.string().describe("Category name"),
|
|
28
|
+
count: z.number().int().describe("Count of articles in this category")
|
|
29
|
+
});
|
|
30
|
+
const PerigonGetJournalists_JournalistProfileSchema = z.object({
|
|
31
|
+
id: z.string().describe("Unique journalist identifier"),
|
|
32
|
+
name: z.string().describe("Journalist name"),
|
|
33
|
+
title: z.string().describe("Professional title of journalist").nullable().optional(),
|
|
34
|
+
blogUrl: z.string().describe("Blog URL").nullable().optional(),
|
|
35
|
+
fullName: z.string().describe("Journalist full name").nullable().optional(),
|
|
36
|
+
headline: z.string().describe("Professional headline").nullable().optional(),
|
|
37
|
+
imageUrl: z.string().describe("URL to journalist's image").nullable().optional(),
|
|
38
|
+
locations: z.array(z.string()).describe("Locations of journalist").nullable().optional(),
|
|
39
|
+
topLabels: z.array(PerigonGetJournalists_LabelCountSchema).describe("Top labels").nullable().optional(),
|
|
40
|
+
topTopics: z.array(PerigonGetJournalists_TopicCountSchema).describe("Top topics covered").nullable().optional(),
|
|
41
|
+
tumblrUrl: z.string().describe("Tumblr URL").nullable().optional(),
|
|
42
|
+
updatedAt: z.string().describe("Last updated timestamp").nullable().optional(),
|
|
43
|
+
topSources: z.array(PerigonGetJournalists_SourceCountSchema).describe("Top sources").nullable().optional(),
|
|
44
|
+
twitterBio: z.string().describe("Twitter bio").nullable().optional(),
|
|
45
|
+
websiteUrl: z.string().describe("Personal website URL").nullable().optional(),
|
|
46
|
+
youtubeUrl: z.string().describe("YouTube channel URL").nullable().optional(),
|
|
47
|
+
description: z.string().describe("Brief biography or summary").nullable().optional(),
|
|
48
|
+
facebookUrl: z.string().describe("Facebook profile URL").nullable().optional(),
|
|
49
|
+
linkedinUrl: z.string().describe("LinkedIn profile URL").nullable().optional(),
|
|
50
|
+
instagramUrl: z.string().describe("Instagram profile URL").nullable().optional(),
|
|
51
|
+
topCountries: z.array(PerigonGetJournalists_CountryCountSchema).describe("Top countries").nullable().optional(),
|
|
52
|
+
topCategories: z.array(PerigonGetJournalists_CategoryCountSchema).describe("Top categories").nullable().optional(),
|
|
53
|
+
twitterHandle: z.string().describe("Twitter handle").nullable().optional(),
|
|
54
|
+
avgMonthlyPosts: z.number().int().describe("Average monthly posts").nullable().optional(),
|
|
55
|
+
linkedinFollowers: z.number().int().describe("LinkedIn followers count").nullable().optional(),
|
|
56
|
+
linkedinConnections: z.number().int().describe("LinkedIn connections count").nullable().optional()
|
|
57
|
+
});
|
|
58
|
+
const perigonGetJournalists = action("PERIGON_GET_JOURNALISTS", {
|
|
59
|
+
slug: "perigon-get-journalists",
|
|
60
|
+
name: "Get Journalists",
|
|
61
|
+
description: "Tool to retrieve journalist profiles including title, Twitter handle, bio, and location. Use when you need detailed journalist info to enrich content with author metadata.",
|
|
62
|
+
input: PerigonGetJournalistsInput,
|
|
63
|
+
output: z.object({
|
|
64
|
+
numResults: z.number().int().describe("Total number of matching journalists"),
|
|
65
|
+
journalists: z.array(PerigonGetJournalists_JournalistProfileSchema).describe("Array of journalist profiles returned")
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { perigonGetJournalists };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=get-journalists.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-journalists.mjs","names":[],"sources":["../../src/actions/get-journalists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetJournalistsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of items to return (default: 10, max: 100)\").optional(),\n query: z.string().describe(\"Search string for journalist name\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination\").optional(),\n outlet: z.string().describe(\"Filter journalists by outlet name\").optional(),\n});\nconst PerigonGetJournalists_LabelCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Label name\"),\n count: z.number().int().describe(\"Count of articles with this label\"),\n});\nconst PerigonGetJournalists_TopicCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Topic name\"),\n count: z.number().int().describe(\"Count of articles on this topic\"),\n});\nconst PerigonGetJournalists_SourceCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Source name\"),\n count: z.number().int().describe(\"Count of articles from this source\"),\n});\nconst PerigonGetJournalists_CountryCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Country code\"),\n count: z.number().int().describe(\"Count of articles from this country\"),\n});\nconst PerigonGetJournalists_CategoryCountSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Category name\"),\n count: z.number().int().describe(\"Count of articles in this category\"),\n});\nconst PerigonGetJournalists_JournalistProfileSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique journalist identifier\"),\n name: z.string().describe(\"Journalist name\"),\n title: z.string().describe(\"Professional title of journalist\").nullable().optional(),\n blogUrl: z.string().describe(\"Blog URL\").nullable().optional(),\n fullName: z.string().describe(\"Journalist full name\").nullable().optional(),\n headline: z.string().describe(\"Professional headline\").nullable().optional(),\n imageUrl: z.string().describe(\"URL to journalist's image\").nullable().optional(),\n locations: z.array(z.string()).describe(\"Locations of journalist\").nullable().optional(),\n topLabels: z.array(PerigonGetJournalists_LabelCountSchema).describe(\"Top labels\").nullable().optional(),\n topTopics: z.array(PerigonGetJournalists_TopicCountSchema).describe(\"Top topics covered\").nullable().optional(),\n tumblrUrl: z.string().describe(\"Tumblr URL\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp\").nullable().optional(),\n topSources: z.array(PerigonGetJournalists_SourceCountSchema).describe(\"Top sources\").nullable().optional(),\n twitterBio: z.string().describe(\"Twitter bio\").nullable().optional(),\n websiteUrl: z.string().describe(\"Personal website URL\").nullable().optional(),\n youtubeUrl: z.string().describe(\"YouTube channel URL\").nullable().optional(),\n description: z.string().describe(\"Brief biography or summary\").nullable().optional(),\n facebookUrl: z.string().describe(\"Facebook profile URL\").nullable().optional(),\n linkedinUrl: z.string().describe(\"LinkedIn profile URL\").nullable().optional(),\n instagramUrl: z.string().describe(\"Instagram profile URL\").nullable().optional(),\n topCountries: z.array(PerigonGetJournalists_CountryCountSchema).describe(\"Top countries\").nullable().optional(),\n topCategories: z.array(PerigonGetJournalists_CategoryCountSchema).describe(\"Top categories\").nullable().optional(),\n twitterHandle: z.string().describe(\"Twitter handle\").nullable().optional(),\n avgMonthlyPosts: z.number().int().describe(\"Average monthly posts\").nullable().optional(),\n linkedinFollowers: z.number().int().describe(\"LinkedIn followers count\").nullable().optional(),\n linkedinConnections: z.number().int().describe(\"LinkedIn connections count\").nullable().optional(),\n});\nexport const PerigonGetJournalistsOutput: z.ZodTypeAny = z.object({\n numResults: z.number().int().describe(\"Total number of matching journalists\"),\n journalists: z.array(PerigonGetJournalists_JournalistProfileSchema).describe(\"Array of journalist profiles returned\"),\n});\n\nexport const perigonGetJournalists = action(\"PERIGON_GET_JOURNALISTS\", {\n slug: \"perigon-get-journalists\",\n name: \"Get Journalists\",\n description: \"Tool to retrieve journalist profiles including title, Twitter handle, bio, and location. Use when you need detailed journalist info to enrich content with author metadata.\",\n input: PerigonGetJournalistsInput,\n output: PerigonGetJournalistsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAA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
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-sources.ts
|
|
4
|
+
const PerigonGetSourcesInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().default(1).describe("Page number for pagination (default: 1)").optional(),
|
|
6
|
+
domain: zod.z.string().describe("Filter by domain of the source (e.g., cnn.com)").optional(),
|
|
7
|
+
country: zod.z.string().describe("Filter by country code (ISO-3166-1 alpha-2, e.g., US)").optional(),
|
|
8
|
+
category: zod.z.enum([
|
|
9
|
+
"general",
|
|
10
|
+
"sports",
|
|
11
|
+
"technology",
|
|
12
|
+
"business",
|
|
13
|
+
"entertainment",
|
|
14
|
+
"health",
|
|
15
|
+
"science"
|
|
16
|
+
]).describe("Filter by category of the source").optional(),
|
|
17
|
+
language: zod.z.string().describe("Filter by language code (ISO-639-1, e.g., en)").optional(),
|
|
18
|
+
per_page: zod.z.number().int().default(10).describe("Results per page (default: 10, max: 100)").optional(),
|
|
19
|
+
max_stories: zod.z.number().int().describe("Filter for sources with maximum stories per month").optional(),
|
|
20
|
+
max_traffic: zod.z.number().int().describe("Filter for sources with a maximum SimilarWeb global rank").optional(),
|
|
21
|
+
min_stories: zod.z.number().int().describe("Filter for sources with minimum stories per month").optional(),
|
|
22
|
+
min_traffic: zod.z.number().int().describe("Filter for sources with a minimum SimilarWeb global rank").optional(),
|
|
23
|
+
exclude_domains: zod.z.string().describe("Comma-separated list of domains to exclude").optional(),
|
|
24
|
+
include_domains: zod.z.string().describe("Comma-separated list of domains to include").optional()
|
|
25
|
+
}).describe("Request parameters to filter media sources.");
|
|
26
|
+
const PerigonGetSources_LocationCoordinatesSchema = zod.z.object({
|
|
27
|
+
lat: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
28
|
+
lon: zod.z.number().describe("Longitude coordinate").nullable().optional()
|
|
29
|
+
});
|
|
30
|
+
const PerigonGetSources_LocationSchema = zod.z.object({
|
|
31
|
+
city: zod.z.string().describe("City name").nullable().optional(),
|
|
32
|
+
state: zod.z.string().describe("State code").nullable().optional(),
|
|
33
|
+
county: zod.z.string().describe("County name").nullable().optional(),
|
|
34
|
+
country: zod.z.string().describe("Country code (lowercase)").nullable().optional(),
|
|
35
|
+
coordinates: PerigonGetSources_LocationCoordinatesSchema.nullable().optional()
|
|
36
|
+
});
|
|
37
|
+
const PerigonGetSources_LogoObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the logo image").nullable().optional() });
|
|
38
|
+
const PerigonGetSources_NameCountItemSchema = zod.z.object({
|
|
39
|
+
name: zod.z.string().describe("Name of the item"),
|
|
40
|
+
count: zod.z.number().int().describe("Count of occurrences")
|
|
41
|
+
});
|
|
42
|
+
const PerigonGetSources_SourceSchema = zod.z.object({
|
|
43
|
+
id: zod.z.string().describe("Unique source ID"),
|
|
44
|
+
name: zod.z.string().describe("Name of the news source").nullable().optional(),
|
|
45
|
+
domain: zod.z.string().describe("Website domain of the source"),
|
|
46
|
+
paywall: zod.z.boolean().describe("Whether source has a paywall").nullable().optional(),
|
|
47
|
+
altNames: zod.z.array(zod.z.string()).describe("Alternative names").nullable().optional(),
|
|
48
|
+
location: PerigonGetSources_LocationSchema.nullable().optional(),
|
|
49
|
+
logoLarge: PerigonGetSources_LogoObjectSchema.nullable().optional(),
|
|
50
|
+
topLabels: zod.z.array(PerigonGetSources_NameCountItemSchema).describe("Top labels with counts").nullable().optional(),
|
|
51
|
+
topTopics: zod.z.array(PerigonGetSources_NameCountItemSchema).describe("Top topics covered with counts").nullable().optional(),
|
|
52
|
+
updatedAt: zod.z.string().describe("Last updated timestamp").nullable().optional(),
|
|
53
|
+
globalRank: zod.z.number().int().describe("SimilarWeb global rank").nullable().optional(),
|
|
54
|
+
logoSquare: PerigonGetSources_LogoObjectSchema.nullable().optional(),
|
|
55
|
+
description: zod.z.string().describe("Description of the source").nullable().optional(),
|
|
56
|
+
logoFavIcon: PerigonGetSources_LogoObjectSchema.nullable().optional(),
|
|
57
|
+
topCountries: zod.z.array(PerigonGetSources_NameCountItemSchema).describe("Top countries covered with counts").nullable().optional(),
|
|
58
|
+
avgBiasRating: zod.z.string().describe("Average bias rating").nullable().optional(),
|
|
59
|
+
monthlyVisits: zod.z.number().int().describe("Monthly website visits count").nullable().optional(),
|
|
60
|
+
topCategories: zod.z.array(PerigonGetSources_NameCountItemSchema).describe("Top categories with counts").nullable().optional(),
|
|
61
|
+
mbfcBiasRating: zod.z.string().describe("MBFC bias rating").nullable().optional(),
|
|
62
|
+
avgMonthlyPosts: zod.z.number().int().describe("Average monthly posts count").nullable().optional(),
|
|
63
|
+
primaryRecordId: zod.z.string().describe("Primary record ID").nullable().optional(),
|
|
64
|
+
adFontesBiasRating: zod.z.string().describe("AdFontes bias rating").nullable().optional(),
|
|
65
|
+
allSidesBiasRating: zod.z.string().describe("AllSides bias rating").nullable().optional()
|
|
66
|
+
});
|
|
67
|
+
const PerigonGetSourcesOutput = zod.z.object({
|
|
68
|
+
status: zod.z.number().int().describe("HTTP status code"),
|
|
69
|
+
results: zod.z.array(PerigonGetSources_SourceSchema).describe("List of source objects"),
|
|
70
|
+
numResults: zod.z.number().int().describe("Total number of matching sources")
|
|
71
|
+
});
|
|
72
|
+
const perigonGetSources = require_action.action("PERIGON_GET_SOURCES", {
|
|
73
|
+
slug: "perigon-get-sources",
|
|
74
|
+
name: "Get Media Sources",
|
|
75
|
+
description: "Tool to retrieve a list of media sources with filtering options. Use when you need to list sources by domain, country, category, or traffic metrics.",
|
|
76
|
+
input: PerigonGetSourcesInput,
|
|
77
|
+
output: PerigonGetSourcesOutput
|
|
78
|
+
});
|
|
79
|
+
//#endregion
|
|
80
|
+
exports.perigonGetSources = perigonGetSources;
|
|
81
|
+
|
|
82
|
+
//# sourceMappingURL=get-sources.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sources.cjs","names":["z","action"],"sources":["../../src/actions/get-sources.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetSourcesInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n domain: z.string().describe(\"Filter by domain of the source (e.g., cnn.com)\").optional(),\n country: z.string().describe(\"Filter by country code (ISO-3166-1 alpha-2, e.g., US)\").optional(),\n category: z.enum([\"general\", \"sports\", \"technology\", \"business\", \"entertainment\", \"health\", \"science\"]).describe(\"Filter by category of the source\").optional(),\n language: z.string().describe(\"Filter by language code (ISO-639-1, e.g., en)\").optional(),\n per_page: z.number().int().default(10).describe(\"Results per page (default: 10, max: 100)\").optional(),\n max_stories: z.number().int().describe(\"Filter for sources with maximum stories per month\").optional(),\n max_traffic: z.number().int().describe(\"Filter for sources with a maximum SimilarWeb global rank\").optional(),\n min_stories: z.number().int().describe(\"Filter for sources with minimum stories per month\").optional(),\n min_traffic: z.number().int().describe(\"Filter for sources with a minimum SimilarWeb global rank\").optional(),\n exclude_domains: z.string().describe(\"Comma-separated list of domains to exclude\").optional(),\n include_domains: z.string().describe(\"Comma-separated list of domains to include\").optional(),\n}).describe(\"Request parameters to filter media sources.\");\nconst PerigonGetSources_LocationCoordinatesSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lon: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PerigonGetSources_LocationSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City name\").nullable().optional(),\n state: z.string().describe(\"State code\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n country: z.string().describe(\"Country code (lowercase)\").nullable().optional(),\n coordinates: PerigonGetSources_LocationCoordinatesSchema.nullable().optional(),\n});\nconst PerigonGetSources_LogoObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the logo image\").nullable().optional(),\n});\nconst PerigonGetSources_NameCountItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the item\"),\n count: z.number().int().describe(\"Count of occurrences\"),\n});\nconst PerigonGetSources_SourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique source ID\"),\n name: z.string().describe(\"Name of the news source\").nullable().optional(),\n domain: z.string().describe(\"Website domain of the source\"),\n paywall: z.boolean().describe(\"Whether source has a paywall\").nullable().optional(),\n altNames: z.array(z.string()).describe(\"Alternative names\").nullable().optional(),\n location: PerigonGetSources_LocationSchema.nullable().optional(),\n logoLarge: PerigonGetSources_LogoObjectSchema.nullable().optional(),\n topLabels: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top labels with counts\").nullable().optional(),\n topTopics: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top topics covered with counts\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp\").nullable().optional(),\n globalRank: z.number().int().describe(\"SimilarWeb global rank\").nullable().optional(),\n logoSquare: PerigonGetSources_LogoObjectSchema.nullable().optional(),\n description: z.string().describe(\"Description of the source\").nullable().optional(),\n logoFavIcon: PerigonGetSources_LogoObjectSchema.nullable().optional(),\n topCountries: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top countries covered with counts\").nullable().optional(),\n avgBiasRating: z.string().describe(\"Average bias rating\").nullable().optional(),\n monthlyVisits: z.number().int().describe(\"Monthly website visits count\").nullable().optional(),\n topCategories: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top categories with counts\").nullable().optional(),\n mbfcBiasRating: z.string().describe(\"MBFC bias rating\").nullable().optional(),\n avgMonthlyPosts: z.number().int().describe(\"Average monthly posts count\").nullable().optional(),\n primaryRecordId: z.string().describe(\"Primary record ID\").nullable().optional(),\n adFontesBiasRating: z.string().describe(\"AdFontes bias rating\").nullable().optional(),\n allSidesBiasRating: z.string().describe(\"AllSides bias rating\").nullable().optional(),\n});\nexport const PerigonGetSourcesOutput: z.ZodTypeAny = z.object({\n status: z.number().int().describe(\"HTTP status code\"),\n results: z.array(PerigonGetSources_SourceSchema).describe(\"List of source objects\"),\n numResults: z.number().int().describe(\"Total number of matching sources\"),\n});\n\nexport const perigonGetSources = action(\"PERIGON_GET_SOURCES\", {\n slug: \"perigon-get-sources\",\n name: \"Get Media Sources\",\n description: \"Tool to retrieve a list of media sources with filtering options. Use when you need to list sources by domain, country, category, or traffic metrics.\",\n input: PerigonGetSourcesInput,\n output: PerigonGetSourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;EAAc;EAAY;EAAiB;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CA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CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-sources.d.ts
|
|
4
|
+
declare const PerigonGetSourcesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PerigonGetSourcesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const perigonGetSources: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { perigonGetSources };
|
|
9
|
+
//# sourceMappingURL=get-sources.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sources.d.cts","names":[],"sources":["../../src/actions/get-sources.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAamB;AAAA,cA4C7C,uBAAA,EAAyB,CAAA,CAAE,UAItC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-sources.d.ts
|
|
4
|
+
declare const PerigonGetSourcesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PerigonGetSourcesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const perigonGetSources: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { perigonGetSources };
|
|
9
|
+
//# sourceMappingURL=get-sources.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sources.d.mts","names":[],"sources":["../../src/actions/get-sources.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAamB;AAAA,cA4C7C,uBAAA,EAAyB,CAAA,CAAE,UAItC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-sources.ts
|
|
4
|
+
const PerigonGetSourcesInput = z.object({
|
|
5
|
+
page: z.number().int().default(1).describe("Page number for pagination (default: 1)").optional(),
|
|
6
|
+
domain: z.string().describe("Filter by domain of the source (e.g., cnn.com)").optional(),
|
|
7
|
+
country: z.string().describe("Filter by country code (ISO-3166-1 alpha-2, e.g., US)").optional(),
|
|
8
|
+
category: z.enum([
|
|
9
|
+
"general",
|
|
10
|
+
"sports",
|
|
11
|
+
"technology",
|
|
12
|
+
"business",
|
|
13
|
+
"entertainment",
|
|
14
|
+
"health",
|
|
15
|
+
"science"
|
|
16
|
+
]).describe("Filter by category of the source").optional(),
|
|
17
|
+
language: z.string().describe("Filter by language code (ISO-639-1, e.g., en)").optional(),
|
|
18
|
+
per_page: z.number().int().default(10).describe("Results per page (default: 10, max: 100)").optional(),
|
|
19
|
+
max_stories: z.number().int().describe("Filter for sources with maximum stories per month").optional(),
|
|
20
|
+
max_traffic: z.number().int().describe("Filter for sources with a maximum SimilarWeb global rank").optional(),
|
|
21
|
+
min_stories: z.number().int().describe("Filter for sources with minimum stories per month").optional(),
|
|
22
|
+
min_traffic: z.number().int().describe("Filter for sources with a minimum SimilarWeb global rank").optional(),
|
|
23
|
+
exclude_domains: z.string().describe("Comma-separated list of domains to exclude").optional(),
|
|
24
|
+
include_domains: z.string().describe("Comma-separated list of domains to include").optional()
|
|
25
|
+
}).describe("Request parameters to filter media sources.");
|
|
26
|
+
const PerigonGetSources_LocationCoordinatesSchema = z.object({
|
|
27
|
+
lat: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
28
|
+
lon: z.number().describe("Longitude coordinate").nullable().optional()
|
|
29
|
+
});
|
|
30
|
+
const PerigonGetSources_LocationSchema = z.object({
|
|
31
|
+
city: z.string().describe("City name").nullable().optional(),
|
|
32
|
+
state: z.string().describe("State code").nullable().optional(),
|
|
33
|
+
county: z.string().describe("County name").nullable().optional(),
|
|
34
|
+
country: z.string().describe("Country code (lowercase)").nullable().optional(),
|
|
35
|
+
coordinates: PerigonGetSources_LocationCoordinatesSchema.nullable().optional()
|
|
36
|
+
});
|
|
37
|
+
const PerigonGetSources_LogoObjectSchema = z.object({ url: z.string().describe("URL of the logo image").nullable().optional() });
|
|
38
|
+
const PerigonGetSources_NameCountItemSchema = z.object({
|
|
39
|
+
name: z.string().describe("Name of the item"),
|
|
40
|
+
count: z.number().int().describe("Count of occurrences")
|
|
41
|
+
});
|
|
42
|
+
const PerigonGetSources_SourceSchema = z.object({
|
|
43
|
+
id: z.string().describe("Unique source ID"),
|
|
44
|
+
name: z.string().describe("Name of the news source").nullable().optional(),
|
|
45
|
+
domain: z.string().describe("Website domain of the source"),
|
|
46
|
+
paywall: z.boolean().describe("Whether source has a paywall").nullable().optional(),
|
|
47
|
+
altNames: z.array(z.string()).describe("Alternative names").nullable().optional(),
|
|
48
|
+
location: PerigonGetSources_LocationSchema.nullable().optional(),
|
|
49
|
+
logoLarge: PerigonGetSources_LogoObjectSchema.nullable().optional(),
|
|
50
|
+
topLabels: z.array(PerigonGetSources_NameCountItemSchema).describe("Top labels with counts").nullable().optional(),
|
|
51
|
+
topTopics: z.array(PerigonGetSources_NameCountItemSchema).describe("Top topics covered with counts").nullable().optional(),
|
|
52
|
+
updatedAt: z.string().describe("Last updated timestamp").nullable().optional(),
|
|
53
|
+
globalRank: z.number().int().describe("SimilarWeb global rank").nullable().optional(),
|
|
54
|
+
logoSquare: PerigonGetSources_LogoObjectSchema.nullable().optional(),
|
|
55
|
+
description: z.string().describe("Description of the source").nullable().optional(),
|
|
56
|
+
logoFavIcon: PerigonGetSources_LogoObjectSchema.nullable().optional(),
|
|
57
|
+
topCountries: z.array(PerigonGetSources_NameCountItemSchema).describe("Top countries covered with counts").nullable().optional(),
|
|
58
|
+
avgBiasRating: z.string().describe("Average bias rating").nullable().optional(),
|
|
59
|
+
monthlyVisits: z.number().int().describe("Monthly website visits count").nullable().optional(),
|
|
60
|
+
topCategories: z.array(PerigonGetSources_NameCountItemSchema).describe("Top categories with counts").nullable().optional(),
|
|
61
|
+
mbfcBiasRating: z.string().describe("MBFC bias rating").nullable().optional(),
|
|
62
|
+
avgMonthlyPosts: z.number().int().describe("Average monthly posts count").nullable().optional(),
|
|
63
|
+
primaryRecordId: z.string().describe("Primary record ID").nullable().optional(),
|
|
64
|
+
adFontesBiasRating: z.string().describe("AdFontes bias rating").nullable().optional(),
|
|
65
|
+
allSidesBiasRating: z.string().describe("AllSides bias rating").nullable().optional()
|
|
66
|
+
});
|
|
67
|
+
const perigonGetSources = action("PERIGON_GET_SOURCES", {
|
|
68
|
+
slug: "perigon-get-sources",
|
|
69
|
+
name: "Get Media Sources",
|
|
70
|
+
description: "Tool to retrieve a list of media sources with filtering options. Use when you need to list sources by domain, country, category, or traffic metrics.",
|
|
71
|
+
input: PerigonGetSourcesInput,
|
|
72
|
+
output: z.object({
|
|
73
|
+
status: z.number().int().describe("HTTP status code"),
|
|
74
|
+
results: z.array(PerigonGetSources_SourceSchema).describe("List of source objects"),
|
|
75
|
+
numResults: z.number().int().describe("Total number of matching sources")
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
export { perigonGetSources };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=get-sources.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sources.mjs","names":[],"sources":["../../src/actions/get-sources.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetSourcesInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n domain: z.string().describe(\"Filter by domain of the source (e.g., cnn.com)\").optional(),\n country: z.string().describe(\"Filter by country code (ISO-3166-1 alpha-2, e.g., US)\").optional(),\n category: z.enum([\"general\", \"sports\", \"technology\", \"business\", \"entertainment\", \"health\", \"science\"]).describe(\"Filter by category of the source\").optional(),\n language: z.string().describe(\"Filter by language code (ISO-639-1, e.g., en)\").optional(),\n per_page: z.number().int().default(10).describe(\"Results per page (default: 10, max: 100)\").optional(),\n max_stories: z.number().int().describe(\"Filter for sources with maximum stories per month\").optional(),\n max_traffic: z.number().int().describe(\"Filter for sources with a maximum SimilarWeb global rank\").optional(),\n min_stories: z.number().int().describe(\"Filter for sources with minimum stories per month\").optional(),\n min_traffic: z.number().int().describe(\"Filter for sources with a minimum SimilarWeb global rank\").optional(),\n exclude_domains: z.string().describe(\"Comma-separated list of domains to exclude\").optional(),\n include_domains: z.string().describe(\"Comma-separated list of domains to include\").optional(),\n}).describe(\"Request parameters to filter media sources.\");\nconst PerigonGetSources_LocationCoordinatesSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lon: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PerigonGetSources_LocationSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City name\").nullable().optional(),\n state: z.string().describe(\"State code\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n country: z.string().describe(\"Country code (lowercase)\").nullable().optional(),\n coordinates: PerigonGetSources_LocationCoordinatesSchema.nullable().optional(),\n});\nconst PerigonGetSources_LogoObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the logo image\").nullable().optional(),\n});\nconst PerigonGetSources_NameCountItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the item\"),\n count: z.number().int().describe(\"Count of occurrences\"),\n});\nconst PerigonGetSources_SourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique source ID\"),\n name: z.string().describe(\"Name of the news source\").nullable().optional(),\n domain: z.string().describe(\"Website domain of the source\"),\n paywall: z.boolean().describe(\"Whether source has a paywall\").nullable().optional(),\n altNames: z.array(z.string()).describe(\"Alternative names\").nullable().optional(),\n location: PerigonGetSources_LocationSchema.nullable().optional(),\n logoLarge: PerigonGetSources_LogoObjectSchema.nullable().optional(),\n topLabels: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top labels with counts\").nullable().optional(),\n topTopics: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top topics covered with counts\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp\").nullable().optional(),\n globalRank: z.number().int().describe(\"SimilarWeb global rank\").nullable().optional(),\n logoSquare: PerigonGetSources_LogoObjectSchema.nullable().optional(),\n description: z.string().describe(\"Description of the source\").nullable().optional(),\n logoFavIcon: PerigonGetSources_LogoObjectSchema.nullable().optional(),\n topCountries: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top countries covered with counts\").nullable().optional(),\n avgBiasRating: z.string().describe(\"Average bias rating\").nullable().optional(),\n monthlyVisits: z.number().int().describe(\"Monthly website visits count\").nullable().optional(),\n topCategories: z.array(PerigonGetSources_NameCountItemSchema).describe(\"Top categories with counts\").nullable().optional(),\n mbfcBiasRating: z.string().describe(\"MBFC bias rating\").nullable().optional(),\n avgMonthlyPosts: z.number().int().describe(\"Average monthly posts count\").nullable().optional(),\n primaryRecordId: z.string().describe(\"Primary record ID\").nullable().optional(),\n adFontesBiasRating: z.string().describe(\"AdFontes bias rating\").nullable().optional(),\n allSidesBiasRating: z.string().describe(\"AllSides bias rating\").nullable().optional(),\n});\nexport const PerigonGetSourcesOutput: z.ZodTypeAny = z.object({\n status: z.number().int().describe(\"HTTP status code\"),\n results: z.array(PerigonGetSources_SourceSchema).describe(\"List of source objects\"),\n numResults: z.number().int().describe(\"Total number of matching sources\"),\n});\n\nexport const perigonGetSources = action(\"PERIGON_GET_SOURCES\", {\n slug: \"perigon-get-sources\",\n name: \"Get Media Sources\",\n description: \"Tool to retrieve a list of media sources with filtering options. Use when you need to list sources by domain, country, category, or traffic metrics.\",\n input: PerigonGetSourcesInput,\n output: PerigonGetSourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,KAAK;EAAC;EAAW;EAAU;EAAc;EAAY;EAAiB;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC5G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,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AgB,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC;AAOD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXmD,EAAE,OAAO;EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;EACpD,SAAS,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,wBAAwB;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAC1E,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-stories.ts
|
|
4
|
+
const PerigonGetStoriesInput = zod.z.object({
|
|
5
|
+
q: zod.z.string().describe("Search query keywords or phrases").optional(),
|
|
6
|
+
ids: zod.z.string().describe("Comma-separated story IDs").optional(),
|
|
7
|
+
page: zod.z.number().int().default(1).describe("Page number for pagination").optional(),
|
|
8
|
+
type: zod.z.string().describe("Story type, e.g., 'story', 'opinion', 'analysis'").optional(),
|
|
9
|
+
image: zod.z.boolean().describe("Only stories with images").optional(),
|
|
10
|
+
video: zod.z.boolean().describe("Only stories with videos").optional(),
|
|
11
|
+
domain: zod.z.string().describe("Comma-separated domains to filter by").optional(),
|
|
12
|
+
sortBy: zod.z.string().describe("Sort method for story results (default: createdAt)").optional(),
|
|
13
|
+
cluster: zod.z.number().int().describe("Only show stories in a given cluster").optional(),
|
|
14
|
+
country: zod.z.string().describe("Country code, e.g., 'us'").optional(),
|
|
15
|
+
not_ids: zod.z.string().describe("Exclude comma-separated story IDs").optional(),
|
|
16
|
+
paywall: zod.z.boolean().describe("Only paywalled or non-paywalled content").optional(),
|
|
17
|
+
sources: zod.z.string().describe("Comma-separated source IDs to filter by").optional(),
|
|
18
|
+
to_date: zod.z.string().describe("End date for filtering stories in ISO 8601 format").optional(),
|
|
19
|
+
category: zod.z.string().describe("News category, e.g., 'sports'").optional(),
|
|
20
|
+
language: zod.z.string().describe("Language code, e.g., 'en'").optional(),
|
|
21
|
+
from_date: zod.z.string().describe("Start date for filtering stories in ISO 8601 format").optional(),
|
|
22
|
+
max_score: zod.z.number().describe("Maximum Perigon story score").optional(),
|
|
23
|
+
min_score: zod.z.number().describe("Minimum Perigon story score").optional(),
|
|
24
|
+
sentiment: zod.z.enum([
|
|
25
|
+
"positive",
|
|
26
|
+
"neutral",
|
|
27
|
+
"negative"
|
|
28
|
+
]).describe("Filter by sentiment").optional(),
|
|
29
|
+
cluster_min_score: zod.z.number().describe("Minimum clustering score").optional()
|
|
30
|
+
});
|
|
31
|
+
const PerigonGetStories_PersonEntitySchema = zod.z.object({
|
|
32
|
+
name: zod.z.string().describe("Person name").nullable().optional(),
|
|
33
|
+
count: zod.z.number().int().describe("Mention count").nullable().optional(),
|
|
34
|
+
wikidataId: zod.z.string().describe("Wikidata ID for the person").nullable().optional()
|
|
35
|
+
});
|
|
36
|
+
const PerigonGetStories_EntityCountSchema = zod.z.object({
|
|
37
|
+
name: zod.z.string().describe("Entity name").nullable().optional(),
|
|
38
|
+
count: zod.z.number().int().describe("Count of mentions").nullable().optional()
|
|
39
|
+
});
|
|
40
|
+
const PerigonGetStories_CompanyEntitySchema = zod.z.object({
|
|
41
|
+
id: zod.z.string().describe("Company identifier").nullable().optional(),
|
|
42
|
+
name: zod.z.string().describe("Company name").nullable().optional(),
|
|
43
|
+
count: zod.z.number().int().describe("Mention count").nullable().optional(),
|
|
44
|
+
domains: zod.z.array(zod.z.string()).describe("Company domains").nullable().optional(),
|
|
45
|
+
symbols: zod.z.array(zod.z.string()).describe("Stock symbols").nullable().optional()
|
|
46
|
+
});
|
|
47
|
+
const PerigonGetStories_KeyPointSchema = zod.z.object({
|
|
48
|
+
point: zod.z.string().describe("The key point text").nullable().optional(),
|
|
49
|
+
references: zod.z.array(zod.z.string()).describe("Reference article IDs").nullable().optional()
|
|
50
|
+
});
|
|
51
|
+
const PerigonGetStories_LocationEntitySchema = zod.z.object({
|
|
52
|
+
area: zod.z.string().describe("Area name").nullable().optional(),
|
|
53
|
+
city: zod.z.string().describe("City name").nullable().optional(),
|
|
54
|
+
count: zod.z.number().int().describe("Mention count").nullable().optional(),
|
|
55
|
+
state: zod.z.string().describe("State code").nullable().optional(),
|
|
56
|
+
county: zod.z.string().describe("County name").nullable().optional()
|
|
57
|
+
});
|
|
58
|
+
const PerigonGetStories_SentimentSchema = zod.z.object({
|
|
59
|
+
neutral: zod.z.number().describe("Neutral sentiment score").nullable().optional(),
|
|
60
|
+
negative: zod.z.number().describe("Negative sentiment score").nullable().optional(),
|
|
61
|
+
positive: zod.z.number().describe("Positive sentiment score").nullable().optional()
|
|
62
|
+
});
|
|
63
|
+
const PerigonGetStories_TopPersonSchema = zod.z.object({
|
|
64
|
+
name: zod.z.string().describe("Person name"),
|
|
65
|
+
wikidataId: zod.z.string().describe("Wikidata ID for the person").nullable().optional()
|
|
66
|
+
});
|
|
67
|
+
const PerigonGetStories_TopTopicSchema = zod.z.object({ name: zod.z.string().describe("Topic name") });
|
|
68
|
+
const PerigonGetStories_TopCompanySchema = zod.z.object({
|
|
69
|
+
id: zod.z.string().describe("Company identifier").nullable().optional(),
|
|
70
|
+
name: zod.z.string().describe("Company name"),
|
|
71
|
+
domains: zod.z.array(zod.z.string()).describe("Company domains").nullable().optional(),
|
|
72
|
+
symbols: zod.z.array(zod.z.string()).describe("Stock symbols").nullable().optional()
|
|
73
|
+
});
|
|
74
|
+
const PerigonGetStories_TopLocationSchema = zod.z.object({
|
|
75
|
+
area: zod.z.string().describe("Area name").nullable().optional(),
|
|
76
|
+
city: zod.z.string().describe("City name").nullable().optional(),
|
|
77
|
+
state: zod.z.string().describe("State code").nullable().optional(),
|
|
78
|
+
county: zod.z.string().describe("County name").nullable().optional()
|
|
79
|
+
});
|
|
80
|
+
const PerigonGetStories_TopCategorySchema = zod.z.object({ name: zod.z.string().describe("Category name") });
|
|
81
|
+
const PerigonGetStories_TopTaxonomySchema = zod.z.object({ name: zod.z.string().describe("Taxonomy path") });
|
|
82
|
+
const PerigonGetStories_StorySchema = zod.z.object({
|
|
83
|
+
id: zod.z.string().describe("Unique story identifier"),
|
|
84
|
+
name: zod.z.string().describe("AI-generated headline of the story"),
|
|
85
|
+
people: zod.z.array(PerigonGetStories_PersonEntitySchema).describe("People mentioned in the story").nullable().optional(),
|
|
86
|
+
topics: zod.z.array(PerigonGetStories_EntityCountSchema).describe("Topics in the story").nullable().optional(),
|
|
87
|
+
summary: zod.z.string().describe("AI-generated summary of the story").nullable().optional(),
|
|
88
|
+
companies: zod.z.array(PerigonGetStories_CompanyEntitySchema).describe("Companies mentioned in the story").nullable().optional(),
|
|
89
|
+
countries: zod.z.array(PerigonGetStories_EntityCountSchema).describe("Countries mentioned in the story").nullable().optional(),
|
|
90
|
+
createdAt: zod.z.string().describe("Story creation date and time in ISO 8601 format"),
|
|
91
|
+
keyPoints: zod.z.array(PerigonGetStories_KeyPointSchema).describe("Key points from the story").nullable().optional(),
|
|
92
|
+
locations: zod.z.array(PerigonGetStories_LocationEntitySchema).describe("Locations mentioned in the story").nullable().optional(),
|
|
93
|
+
sentiment: PerigonGetStories_SentimentSchema.nullable().optional(),
|
|
94
|
+
topPeople: zod.z.array(PerigonGetStories_TopPersonSchema).describe("Top people in the story").nullable().optional(),
|
|
95
|
+
topTopics: zod.z.array(PerigonGetStories_TopTopicSchema).describe("Top topics in the story").nullable().optional(),
|
|
96
|
+
updatedAt: zod.z.string().describe("Story update date and time in ISO 8601 format").nullable().optional(),
|
|
97
|
+
categories: zod.z.array(PerigonGetStories_EntityCountSchema).describe("Categories of the story").nullable().optional(),
|
|
98
|
+
taxonomies: zod.z.array(PerigonGetStories_EntityCountSchema).describe("Taxonomies of the story").nullable().optional(),
|
|
99
|
+
totalCount: zod.z.number().int().describe("Total count of articles in the story cluster").nullable().optional(),
|
|
100
|
+
duplicateOf: zod.z.string().describe("ID of the original story if this is a duplicate").nullable().optional(),
|
|
101
|
+
uniqueCount: zod.z.number().int().describe("Count of unique articles in the story cluster").nullable().optional(),
|
|
102
|
+
reprintCount: zod.z.number().int().describe("Count of reprinted articles in the story cluster").nullable().optional(),
|
|
103
|
+
shortSummary: zod.z.string().describe("Short summary of the story").nullable().optional(),
|
|
104
|
+
topCompanies: zod.z.array(PerigonGetStories_TopCompanySchema).describe("Top companies in the story").nullable().optional(),
|
|
105
|
+
topCountries: zod.z.array(zod.z.string()).describe("Top countries in the story").nullable().optional(),
|
|
106
|
+
topLocations: zod.z.array(PerigonGetStories_TopLocationSchema).describe("Top locations in the story").nullable().optional(),
|
|
107
|
+
initializedAt: zod.z.string().describe("Story initialization date and time in ISO 8601 format").nullable().optional(),
|
|
108
|
+
topCategories: zod.z.array(PerigonGetStories_TopCategorySchema).describe("Top categories in the story").nullable().optional(),
|
|
109
|
+
topTaxonomies: zod.z.array(PerigonGetStories_TopTaxonomySchema).describe("Top taxonomies in the story").nullable().optional(),
|
|
110
|
+
summaryReferences: zod.z.array(zod.z.string()).describe("Reference article IDs for the summary").nullable().optional()
|
|
111
|
+
});
|
|
112
|
+
const PerigonGetStoriesOutput = zod.z.object({ stories: zod.z.array(PerigonGetStories_StorySchema).describe("List of stories returned by the API") });
|
|
113
|
+
const perigonGetStories = require_action.action("PERIGON_GET_STORIES", {
|
|
114
|
+
slug: "perigon-get-stories",
|
|
115
|
+
name: "Get Stories",
|
|
116
|
+
description: "Tool to retrieve clusters of related articles covering the same event or topic with aggregate metrics. Use when you need to fetch filtered and sorted story clusters after configuring query parameters.",
|
|
117
|
+
input: PerigonGetStoriesInput,
|
|
118
|
+
output: PerigonGetStoriesOutput
|
|
119
|
+
});
|
|
120
|
+
//#endregion
|
|
121
|
+
exports.perigonGetStories = perigonGetStories;
|
|
122
|
+
|
|
123
|
+
//# sourceMappingURL=get-stories.cjs.map
|