@keystrokehq/perigon 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +17 -17
- package/dist/actions/get-stories.d.mts +17 -17
- 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/package.json +1 -1
|
@@ -1 +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.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.object({\n name: z.string().describe(\"Label name\").nullable(),\n count: z.number().int().describe(\"Count of articles with this label\").nullable(),\n});\nconst PerigonGetJournalists_TopicCountSchema = z.object({\n name: z.string().describe(\"Topic name\").nullable(),\n count: z.number().int().describe(\"Count of articles on this topic\").nullable(),\n});\nconst PerigonGetJournalists_SourceCountSchema = z.object({\n name: z.string().describe(\"Source name\").nullable(),\n count: z.number().int().describe(\"Count of articles from this source\").nullable(),\n});\nconst PerigonGetJournalists_CountryCountSchema = z.object({\n name: z.string().describe(\"Country code\").nullable(),\n count: z.number().int().describe(\"Count of articles from this country\").nullable(),\n});\nconst PerigonGetJournalists_CategoryCountSchema = z.object({\n name: z.string().describe(\"Category name\").nullable(),\n count: z.number().int().describe(\"Count of articles in this category\").nullable(),\n});\nconst PerigonGetJournalists_JournalistProfileSchema = z.object({\n id: z.string().describe(\"Unique journalist identifier\").nullable(),\n name: z.string().describe(\"Journalist name\").nullable(),\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.object({\n numResults: z.number().int().describe(\"Total number of matching journalists\").nullable(),\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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC5E,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC;
|
|
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.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.object({\n name: z.string().describe(\"Label name\").nullable(),\n count: z.number().int().describe(\"Count of articles with this label\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_TopicCountSchema = z.object({\n name: z.string().describe(\"Topic name\").nullable(),\n count: z.number().int().describe(\"Count of articles on this topic\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_SourceCountSchema = z.object({\n name: z.string().describe(\"Source name\").nullable(),\n count: z.number().int().describe(\"Count of articles from this source\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_CountryCountSchema = z.object({\n name: z.string().describe(\"Country code\").nullable(),\n count: z.number().int().describe(\"Count of articles from this country\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_CategoryCountSchema = z.object({\n name: z.string().describe(\"Category name\").nullable(),\n count: z.number().int().describe(\"Count of articles in this category\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_JournalistProfileSchema = z.object({\n id: z.string().describe(\"Unique journalist identifier\").nullable(),\n name: z.string().describe(\"Journalist name\").nullable(),\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}).passthrough();\nexport const PerigonGetJournalistsOutput = z.object({\n numResults: z.number().int().describe(\"Total number of matching journalists\").nullable(),\n journalists: z.array(PerigonGetJournalists_JournalistProfileSchema).describe(\"Array of journalist profiles returned\"),\n}).passthrough();\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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,OAAOA,I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C,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,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,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,uCAAuC;AACtH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -21,17 +21,17 @@ declare const PerigonGetJournalistsOutput: z.ZodObject<{
|
|
|
21
21
|
topLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
22
22
|
name: z.ZodNullable<z.ZodString>;
|
|
23
23
|
count: z.ZodNullable<z.ZodNumber>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>>>;
|
|
25
25
|
topTopics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
count: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>>;
|
|
29
29
|
tumblrUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
topSources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
32
32
|
name: z.ZodNullable<z.ZodString>;
|
|
33
33
|
count: z.ZodNullable<z.ZodNumber>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>>;
|
|
35
35
|
twitterBio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
youtubeUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -42,17 +42,17 @@ declare const PerigonGetJournalistsOutput: z.ZodObject<{
|
|
|
42
42
|
topCountries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
43
43
|
name: z.ZodNullable<z.ZodString>;
|
|
44
44
|
count: z.ZodNullable<z.ZodNumber>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>>;
|
|
46
46
|
topCategories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
47
|
name: z.ZodNullable<z.ZodString>;
|
|
48
48
|
count: z.ZodNullable<z.ZodNumber>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>>;
|
|
50
50
|
twitterHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
avgMonthlyPosts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
linkedinFollowers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
linkedinConnections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
56
|
declare const perigonGetJournalists: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
57
57
|
limit?: number | undefined;
|
|
58
58
|
query?: string | undefined;
|
|
@@ -21,17 +21,17 @@ declare const PerigonGetJournalistsOutput: z.ZodObject<{
|
|
|
21
21
|
topLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
22
22
|
name: z.ZodNullable<z.ZodString>;
|
|
23
23
|
count: z.ZodNullable<z.ZodNumber>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>>>;
|
|
25
25
|
topTopics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
count: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>>;
|
|
29
29
|
tumblrUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
topSources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
32
32
|
name: z.ZodNullable<z.ZodString>;
|
|
33
33
|
count: z.ZodNullable<z.ZodNumber>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>>;
|
|
35
35
|
twitterBio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
youtubeUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -42,17 +42,17 @@ declare const PerigonGetJournalistsOutput: z.ZodObject<{
|
|
|
42
42
|
topCountries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
43
43
|
name: z.ZodNullable<z.ZodString>;
|
|
44
44
|
count: z.ZodNullable<z.ZodNumber>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>>;
|
|
46
46
|
topCategories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
47
|
name: z.ZodNullable<z.ZodString>;
|
|
48
48
|
count: z.ZodNullable<z.ZodNumber>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>>;
|
|
50
50
|
twitterHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
avgMonthlyPosts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
linkedinFollowers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
linkedinConnections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
56
|
declare const perigonGetJournalists: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
57
57
|
limit?: number | undefined;
|
|
58
58
|
query?: string | undefined;
|
|
@@ -10,23 +10,23 @@ const PerigonGetJournalistsInput = z.object({
|
|
|
10
10
|
const PerigonGetJournalists_LabelCountSchema = z.object({
|
|
11
11
|
name: z.string().describe("Label name").nullable(),
|
|
12
12
|
count: z.number().int().describe("Count of articles with this label").nullable()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const PerigonGetJournalists_TopicCountSchema = z.object({
|
|
15
15
|
name: z.string().describe("Topic name").nullable(),
|
|
16
16
|
count: z.number().int().describe("Count of articles on this topic").nullable()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const PerigonGetJournalists_SourceCountSchema = z.object({
|
|
19
19
|
name: z.string().describe("Source name").nullable(),
|
|
20
20
|
count: z.number().int().describe("Count of articles from this source").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const PerigonGetJournalists_CountryCountSchema = z.object({
|
|
23
23
|
name: z.string().describe("Country code").nullable(),
|
|
24
24
|
count: z.number().int().describe("Count of articles from this country").nullable()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const PerigonGetJournalists_CategoryCountSchema = z.object({
|
|
27
27
|
name: z.string().describe("Category name").nullable(),
|
|
28
28
|
count: z.number().int().describe("Count of articles in this category").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const PerigonGetJournalists_JournalistProfileSchema = z.object({
|
|
31
31
|
id: z.string().describe("Unique journalist identifier").nullable(),
|
|
32
32
|
name: z.string().describe("Journalist name").nullable(),
|
|
@@ -54,7 +54,7 @@ const PerigonGetJournalists_JournalistProfileSchema = z.object({
|
|
|
54
54
|
avgMonthlyPosts: z.number().int().describe("Average monthly posts").nullable().optional(),
|
|
55
55
|
linkedinFollowers: z.number().int().describe("LinkedIn followers count").nullable().optional(),
|
|
56
56
|
linkedinConnections: z.number().int().describe("LinkedIn connections count").nullable().optional()
|
|
57
|
-
});
|
|
57
|
+
}).passthrough();
|
|
58
58
|
const perigonGetJournalists = action("PERIGON_GET_JOURNALISTS", {
|
|
59
59
|
slug: "perigon-get-journalists",
|
|
60
60
|
name: "Get Journalists",
|
|
@@ -63,7 +63,7 @@ const perigonGetJournalists = action("PERIGON_GET_JOURNALISTS", {
|
|
|
63
63
|
output: z.object({
|
|
64
64
|
numResults: z.number().int().describe("Total number of matching journalists").nullable(),
|
|
65
65
|
journalists: z.array(PerigonGetJournalists_JournalistProfileSchema).describe("Array of journalist profiles returned")
|
|
66
|
-
})
|
|
66
|
+
}).passthrough()
|
|
67
67
|
});
|
|
68
68
|
//#endregion
|
|
69
69
|
export { perigonGetJournalists };
|
|
@@ -1 +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.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.object({\n name: z.string().describe(\"Label name\").nullable(),\n count: z.number().int().describe(\"Count of articles with this label\").nullable(),\n});\nconst PerigonGetJournalists_TopicCountSchema = z.object({\n name: z.string().describe(\"Topic name\").nullable(),\n count: z.number().int().describe(\"Count of articles on this topic\").nullable(),\n});\nconst PerigonGetJournalists_SourceCountSchema = z.object({\n name: z.string().describe(\"Source name\").nullable(),\n count: z.number().int().describe(\"Count of articles from this source\").nullable(),\n});\nconst PerigonGetJournalists_CountryCountSchema = z.object({\n name: z.string().describe(\"Country code\").nullable(),\n count: z.number().int().describe(\"Count of articles from this country\").nullable(),\n});\nconst PerigonGetJournalists_CategoryCountSchema = z.object({\n name: z.string().describe(\"Category name\").nullable(),\n count: z.number().int().describe(\"Count of articles in this category\").nullable(),\n});\nconst PerigonGetJournalists_JournalistProfileSchema = z.object({\n id: z.string().describe(\"Unique journalist identifier\").nullable(),\n name: z.string().describe(\"Journalist name\").nullable(),\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.object({\n numResults: z.number().int().describe(\"Total number of matching journalists\").nullable(),\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,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC5E,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC;
|
|
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.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.object({\n name: z.string().describe(\"Label name\").nullable(),\n count: z.number().int().describe(\"Count of articles with this label\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_TopicCountSchema = z.object({\n name: z.string().describe(\"Topic name\").nullable(),\n count: z.number().int().describe(\"Count of articles on this topic\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_SourceCountSchema = z.object({\n name: z.string().describe(\"Source name\").nullable(),\n count: z.number().int().describe(\"Count of articles from this source\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_CountryCountSchema = z.object({\n name: z.string().describe(\"Country code\").nullable(),\n count: z.number().int().describe(\"Count of articles from this country\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_CategoryCountSchema = z.object({\n name: z.string().describe(\"Category name\").nullable(),\n count: z.number().int().describe(\"Count of articles in this category\").nullable(),\n}).passthrough();\nconst PerigonGetJournalists_JournalistProfileSchema = z.object({\n id: z.string().describe(\"Unique journalist identifier\").nullable(),\n name: z.string().describe(\"Journalist name\").nullable(),\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}).passthrough();\nexport const PerigonGetJournalistsOutput = z.object({\n numResults: z.number().int().describe(\"Total number of matching journalists\").nullable(),\n journalists: z.array(PerigonGetJournalists_JournalistProfileSchema).describe(\"Array of journalist profiles returned\"),\n}).passthrough();\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,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC5E,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD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AO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,uCAAuC;CACtH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -26,19 +26,19 @@ const PerigonGetSourcesInput = zod.z.object({
|
|
|
26
26
|
const PerigonGetSources_LocationCoordinatesSchema = zod.z.object({
|
|
27
27
|
lat: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
28
28
|
lon: zod.z.number().describe("Longitude coordinate").nullable().optional()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const PerigonGetSources_LocationSchema = zod.z.object({
|
|
31
31
|
city: zod.z.string().describe("City name").nullable().optional(),
|
|
32
32
|
state: zod.z.string().describe("State code").nullable().optional(),
|
|
33
33
|
county: zod.z.string().describe("County name").nullable().optional(),
|
|
34
34
|
country: zod.z.string().describe("Country code (lowercase)").nullable().optional(),
|
|
35
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() });
|
|
36
|
+
}).passthrough();
|
|
37
|
+
const PerigonGetSources_LogoObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the logo image").nullable().optional() }).passthrough();
|
|
38
38
|
const PerigonGetSources_NameCountItemSchema = zod.z.object({
|
|
39
39
|
name: zod.z.string().describe("Name of the item").nullable(),
|
|
40
40
|
count: zod.z.number().int().describe("Count of occurrences").nullable()
|
|
41
|
-
});
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const PerigonGetSources_SourceSchema = zod.z.object({
|
|
43
43
|
id: zod.z.string().describe("Unique source ID").nullable(),
|
|
44
44
|
name: zod.z.string().describe("Name of the news source").nullable().optional(),
|
|
@@ -63,12 +63,12 @@ const PerigonGetSources_SourceSchema = zod.z.object({
|
|
|
63
63
|
primaryRecordId: zod.z.string().describe("Primary record ID").nullable().optional(),
|
|
64
64
|
adFontesBiasRating: zod.z.string().describe("AdFontes bias rating").nullable().optional(),
|
|
65
65
|
allSidesBiasRating: zod.z.string().describe("AllSides bias rating").nullable().optional()
|
|
66
|
-
});
|
|
66
|
+
}).passthrough();
|
|
67
67
|
const PerigonGetSourcesOutput = zod.z.object({
|
|
68
68
|
status: zod.z.number().int().describe("HTTP status code").nullable(),
|
|
69
69
|
results: zod.z.array(PerigonGetSources_SourceSchema).describe("List of source objects"),
|
|
70
70
|
numResults: zod.z.number().int().describe("Total number of matching sources").nullable()
|
|
71
|
-
});
|
|
71
|
+
}).passthrough();
|
|
72
72
|
const perigonGetSources = require_action.action("PERIGON_GET_SOURCES", {
|
|
73
73
|
slug: "perigon-get-sources",
|
|
74
74
|
name: "Get Media Sources",
|
|
@@ -1 +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.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.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lon: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PerigonGetSources_LocationSchema = 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.object({\n url: z.string().describe(\"URL of the logo image\").nullable().optional(),\n});\nconst PerigonGetSources_NameCountItemSchema = z.object({\n name: z.string().describe(\"Name of the item\").nullable(),\n count: z.number().int().describe(\"Count of occurrences\").nullable(),\n});\nconst PerigonGetSources_SourceSchema = z.object({\n id: z.string().describe(\"Unique source ID\").nullable(),\n name: z.string().describe(\"Name of the news source\").nullable().optional(),\n domain: z.string().describe(\"Website domain of the source\").nullable(),\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.object({\n status: z.number().int().describe(\"HTTP status code\").nullable(),\n results: z.array(PerigonGetSources_SourceSchema).describe(\"List of source objects\"),\n numResults: z.number().int().describe(\"Total number of matching sources\").nullable(),\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: P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CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC;
|
|
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.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.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lon: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).passthrough();\nconst PerigonGetSources_LocationSchema = 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}).passthrough();\nconst PerigonGetSources_LogoObjectSchema = z.object({\n url: z.string().describe(\"URL of the logo image\").nullable().optional(),\n}).passthrough();\nconst PerigonGetSources_NameCountItemSchema = z.object({\n name: z.string().describe(\"Name of the item\").nullable(),\n count: z.number().int().describe(\"Count of occurrences\").nullable(),\n}).passthrough();\nconst PerigonGetSources_SourceSchema = z.object({\n id: z.string().describe(\"Unique source ID\").nullable(),\n name: z.string().describe(\"Name of the news source\").nullable().optional(),\n domain: z.string().describe(\"Website domain of the source\").nullable(),\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}).passthrough();\nexport const PerigonGetSourcesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code\").nullable(),\n results: z.array(PerigonGetSources_SourceSchema).describe(\"List of source objects\"),\n numResults: z.number().int().describe(\"Total number of matching sources\").nullable(),\n}).passthrough();\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,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,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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,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,wBAAwB;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -39,46 +39,46 @@ declare const PerigonGetSourcesOutput: z.ZodObject<{
|
|
|
39
39
|
coordinates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
41
|
lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>>>;
|
|
44
44
|
logoLarge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
45
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
47
|
topLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
48
|
name: z.ZodNullable<z.ZodString>;
|
|
49
49
|
count: z.ZodNullable<z.ZodNumber>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>>>;
|
|
51
51
|
topTopics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
52
52
|
name: z.ZodNullable<z.ZodString>;
|
|
53
53
|
count: z.ZodNullable<z.ZodNumber>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
55
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
56
|
globalRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
57
|
logoSquare: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
58
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>>>;
|
|
60
60
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
61
|
logoFavIcon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
62
62
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
64
|
topCountries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
65
65
|
name: z.ZodNullable<z.ZodString>;
|
|
66
66
|
count: z.ZodNullable<z.ZodNumber>;
|
|
67
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$loose>>>>;
|
|
68
68
|
avgBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
69
|
monthlyVisits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
70
|
topCategories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
71
71
|
name: z.ZodNullable<z.ZodString>;
|
|
72
72
|
count: z.ZodNullable<z.ZodNumber>;
|
|
73
|
-
}, z.core.$
|
|
73
|
+
}, z.core.$loose>>>>;
|
|
74
74
|
mbfcBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
75
|
avgMonthlyPosts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
76
|
primaryRecordId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
77
|
adFontesBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
78
|
allSidesBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
}, z.core.$
|
|
79
|
+
}, z.core.$loose>>;
|
|
80
80
|
numResults: z.ZodNullable<z.ZodNumber>;
|
|
81
|
-
}, z.core.$
|
|
81
|
+
}, z.core.$loose>;
|
|
82
82
|
declare const perigonGetSources: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
83
83
|
page?: number | undefined;
|
|
84
84
|
domain?: string | undefined;
|
|
@@ -39,46 +39,46 @@ declare const PerigonGetSourcesOutput: z.ZodObject<{
|
|
|
39
39
|
coordinates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
41
|
lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>>>;
|
|
44
44
|
logoLarge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
45
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
47
|
topLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
48
|
name: z.ZodNullable<z.ZodString>;
|
|
49
49
|
count: z.ZodNullable<z.ZodNumber>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>>>;
|
|
51
51
|
topTopics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
52
52
|
name: z.ZodNullable<z.ZodString>;
|
|
53
53
|
count: z.ZodNullable<z.ZodNumber>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
55
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
56
|
globalRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
57
|
logoSquare: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
58
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>>>;
|
|
60
60
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
61
|
logoFavIcon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
62
62
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
64
|
topCountries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
65
65
|
name: z.ZodNullable<z.ZodString>;
|
|
66
66
|
count: z.ZodNullable<z.ZodNumber>;
|
|
67
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$loose>>>>;
|
|
68
68
|
avgBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
69
|
monthlyVisits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
70
|
topCategories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
71
71
|
name: z.ZodNullable<z.ZodString>;
|
|
72
72
|
count: z.ZodNullable<z.ZodNumber>;
|
|
73
|
-
}, z.core.$
|
|
73
|
+
}, z.core.$loose>>>>;
|
|
74
74
|
mbfcBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
75
|
avgMonthlyPosts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
76
|
primaryRecordId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
77
|
adFontesBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
78
|
allSidesBiasRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
}, z.core.$
|
|
79
|
+
}, z.core.$loose>>;
|
|
80
80
|
numResults: z.ZodNullable<z.ZodNumber>;
|
|
81
|
-
}, z.core.$
|
|
81
|
+
}, z.core.$loose>;
|
|
82
82
|
declare const perigonGetSources: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
83
83
|
page?: number | undefined;
|
|
84
84
|
domain?: string | undefined;
|
|
@@ -26,19 +26,19 @@ const PerigonGetSourcesInput = z.object({
|
|
|
26
26
|
const PerigonGetSources_LocationCoordinatesSchema = z.object({
|
|
27
27
|
lat: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
28
28
|
lon: z.number().describe("Longitude coordinate").nullable().optional()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const PerigonGetSources_LocationSchema = z.object({
|
|
31
31
|
city: z.string().describe("City name").nullable().optional(),
|
|
32
32
|
state: z.string().describe("State code").nullable().optional(),
|
|
33
33
|
county: z.string().describe("County name").nullable().optional(),
|
|
34
34
|
country: z.string().describe("Country code (lowercase)").nullable().optional(),
|
|
35
35
|
coordinates: PerigonGetSources_LocationCoordinatesSchema.nullable().optional()
|
|
36
|
-
});
|
|
37
|
-
const PerigonGetSources_LogoObjectSchema = z.object({ url: z.string().describe("URL of the logo image").nullable().optional() });
|
|
36
|
+
}).passthrough();
|
|
37
|
+
const PerigonGetSources_LogoObjectSchema = z.object({ url: z.string().describe("URL of the logo image").nullable().optional() }).passthrough();
|
|
38
38
|
const PerigonGetSources_NameCountItemSchema = z.object({
|
|
39
39
|
name: z.string().describe("Name of the item").nullable(),
|
|
40
40
|
count: z.number().int().describe("Count of occurrences").nullable()
|
|
41
|
-
});
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const PerigonGetSources_SourceSchema = z.object({
|
|
43
43
|
id: z.string().describe("Unique source ID").nullable(),
|
|
44
44
|
name: z.string().describe("Name of the news source").nullable().optional(),
|
|
@@ -63,7 +63,7 @@ const PerigonGetSources_SourceSchema = z.object({
|
|
|
63
63
|
primaryRecordId: z.string().describe("Primary record ID").nullable().optional(),
|
|
64
64
|
adFontesBiasRating: z.string().describe("AdFontes bias rating").nullable().optional(),
|
|
65
65
|
allSidesBiasRating: z.string().describe("AllSides bias rating").nullable().optional()
|
|
66
|
-
});
|
|
66
|
+
}).passthrough();
|
|
67
67
|
const perigonGetSources = action("PERIGON_GET_SOURCES", {
|
|
68
68
|
slug: "perigon-get-sources",
|
|
69
69
|
name: "Get Media Sources",
|
|
@@ -73,7 +73,7 @@ const perigonGetSources = action("PERIGON_GET_SOURCES", {
|
|
|
73
73
|
status: z.number().int().describe("HTTP status code").nullable(),
|
|
74
74
|
results: z.array(PerigonGetSources_SourceSchema).describe("List of source objects"),
|
|
75
75
|
numResults: z.number().int().describe("Total number of matching sources").nullable()
|
|
76
|
-
})
|
|
76
|
+
}).passthrough()
|
|
77
77
|
});
|
|
78
78
|
//#endregion
|
|
79
79
|
export { perigonGetSources };
|
|
@@ -1 +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.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.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lon: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PerigonGetSources_LocationSchema = 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.object({\n url: z.string().describe(\"URL of the logo image\").nullable().optional(),\n});\nconst PerigonGetSources_NameCountItemSchema = z.object({\n name: z.string().describe(\"Name of the item\").nullable(),\n count: z.number().int().describe(\"Count of occurrences\").nullable(),\n});\nconst PerigonGetSources_SourceSchema = z.object({\n id: z.string().describe(\"Unique source ID\").nullable(),\n name: z.string().describe(\"Name of the news source\").nullable().optional(),\n domain: z.string().describe(\"Website domain of the source\").nullable(),\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.object({\n status: z.number().int().describe(\"HTTP status code\").nullable(),\n results: z.array(PerigonGetSources_SourceSchema).describe(\"List of source objects\"),\n numResults: z.number().int().describe(\"Total number of matching sources\").nullable(),\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,yBAAyB,EAAE,OAAO;CAC7C,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,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC;
|
|
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.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.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lon: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).passthrough();\nconst PerigonGetSources_LocationSchema = 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}).passthrough();\nconst PerigonGetSources_LogoObjectSchema = z.object({\n url: z.string().describe(\"URL of the logo image\").nullable().optional(),\n}).passthrough();\nconst PerigonGetSources_NameCountItemSchema = z.object({\n name: z.string().describe(\"Name of the item\").nullable(),\n count: z.number().int().describe(\"Count of occurrences\").nullable(),\n}).passthrough();\nconst PerigonGetSources_SourceSchema = z.object({\n id: z.string().describe(\"Unique source ID\").nullable(),\n name: z.string().describe(\"Name of the news source\").nullable().optional(),\n domain: z.string().describe(\"Website domain of the source\").nullable(),\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}).passthrough();\nexport const PerigonGetSourcesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code\").nullable(),\n results: z.array(PerigonGetSources_SourceSchema).describe(\"List of source objects\"),\n numResults: z.number().int().describe(\"Total number of matching sources\").nullable(),\n}).passthrough();\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,yBAAyB,EAAE,OAAO;CAC7C,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,CAAC,C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AC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,gBAAgB,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,CAAC,CAAC,YAAY;AAOf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqC,EAAE,OAAO;EAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAC/D,SAAS,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,wBAAwB;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -32,53 +32,53 @@ const PerigonGetStories_PersonEntitySchema = zod.z.object({
|
|
|
32
32
|
name: zod.z.string().describe("Person name").nullable().optional(),
|
|
33
33
|
count: zod.z.number().int().describe("Mention count").nullable().optional(),
|
|
34
34
|
wikidataId: zod.z.string().describe("Wikidata ID for the person").nullable().optional()
|
|
35
|
-
});
|
|
35
|
+
}).passthrough();
|
|
36
36
|
const PerigonGetStories_EntityCountSchema = zod.z.object({
|
|
37
37
|
name: zod.z.string().describe("Entity name").nullable().optional(),
|
|
38
38
|
count: zod.z.number().int().describe("Count of mentions").nullable().optional()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const PerigonGetStories_CompanyEntitySchema = zod.z.object({
|
|
41
41
|
id: zod.z.string().describe("Company identifier").nullable().optional(),
|
|
42
42
|
name: zod.z.string().describe("Company name").nullable().optional(),
|
|
43
43
|
count: zod.z.number().int().describe("Mention count").nullable().optional(),
|
|
44
44
|
domains: zod.z.array(zod.z.string()).describe("Company domains").nullable().optional(),
|
|
45
45
|
symbols: zod.z.array(zod.z.string()).describe("Stock symbols").nullable().optional()
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const PerigonGetStories_KeyPointSchema = zod.z.object({
|
|
48
48
|
point: zod.z.string().describe("The key point text").nullable().optional(),
|
|
49
49
|
references: zod.z.array(zod.z.string()).describe("Reference article IDs").nullable().optional()
|
|
50
|
-
});
|
|
50
|
+
}).passthrough();
|
|
51
51
|
const PerigonGetStories_LocationEntitySchema = zod.z.object({
|
|
52
52
|
area: zod.z.string().describe("Area name").nullable().optional(),
|
|
53
53
|
city: zod.z.string().describe("City name").nullable().optional(),
|
|
54
54
|
count: zod.z.number().int().describe("Mention count").nullable().optional(),
|
|
55
55
|
state: zod.z.string().describe("State code").nullable().optional(),
|
|
56
56
|
county: zod.z.string().describe("County name").nullable().optional()
|
|
57
|
-
});
|
|
57
|
+
}).passthrough();
|
|
58
58
|
const PerigonGetStories_SentimentSchema = zod.z.object({
|
|
59
59
|
neutral: zod.z.number().describe("Neutral sentiment score").nullable().optional(),
|
|
60
60
|
negative: zod.z.number().describe("Negative sentiment score").nullable().optional(),
|
|
61
61
|
positive: zod.z.number().describe("Positive sentiment score").nullable().optional()
|
|
62
|
-
});
|
|
62
|
+
}).passthrough();
|
|
63
63
|
const PerigonGetStories_TopPersonSchema = zod.z.object({
|
|
64
64
|
name: zod.z.string().describe("Person name").nullable(),
|
|
65
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").nullable() });
|
|
66
|
+
}).passthrough();
|
|
67
|
+
const PerigonGetStories_TopTopicSchema = zod.z.object({ name: zod.z.string().describe("Topic name").nullable() }).passthrough();
|
|
68
68
|
const PerigonGetStories_TopCompanySchema = zod.z.object({
|
|
69
69
|
id: zod.z.string().describe("Company identifier").nullable().optional(),
|
|
70
70
|
name: zod.z.string().describe("Company name").nullable(),
|
|
71
71
|
domains: zod.z.array(zod.z.string()).describe("Company domains").nullable().optional(),
|
|
72
72
|
symbols: zod.z.array(zod.z.string()).describe("Stock symbols").nullable().optional()
|
|
73
|
-
});
|
|
73
|
+
}).passthrough();
|
|
74
74
|
const PerigonGetStories_TopLocationSchema = zod.z.object({
|
|
75
75
|
area: zod.z.string().describe("Area name").nullable().optional(),
|
|
76
76
|
city: zod.z.string().describe("City name").nullable().optional(),
|
|
77
77
|
state: zod.z.string().describe("State code").nullable().optional(),
|
|
78
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").nullable() });
|
|
81
|
-
const PerigonGetStories_TopTaxonomySchema = zod.z.object({ name: zod.z.string().describe("Taxonomy path").nullable() });
|
|
79
|
+
}).passthrough();
|
|
80
|
+
const PerigonGetStories_TopCategorySchema = zod.z.object({ name: zod.z.string().describe("Category name").nullable() }).passthrough();
|
|
81
|
+
const PerigonGetStories_TopTaxonomySchema = zod.z.object({ name: zod.z.string().describe("Taxonomy path").nullable() }).passthrough();
|
|
82
82
|
const PerigonGetStories_StorySchema = zod.z.object({
|
|
83
83
|
id: zod.z.string().describe("Unique story identifier").nullable(),
|
|
84
84
|
name: zod.z.string().describe("AI-generated headline of the story").nullable(),
|
|
@@ -108,8 +108,8 @@ const PerigonGetStories_StorySchema = zod.z.object({
|
|
|
108
108
|
topCategories: zod.z.array(PerigonGetStories_TopCategorySchema).describe("Top categories in the story").nullable().optional(),
|
|
109
109
|
topTaxonomies: zod.z.array(PerigonGetStories_TopTaxonomySchema).describe("Top taxonomies in the story").nullable().optional(),
|
|
110
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") });
|
|
111
|
+
}).passthrough();
|
|
112
|
+
const PerigonGetStoriesOutput = zod.z.object({ stories: zod.z.array(PerigonGetStories_StorySchema).describe("List of stories returned by the API") }).passthrough();
|
|
113
113
|
const perigonGetStories = require_action.action("PERIGON_GET_STORIES", {
|
|
114
114
|
slug: "perigon-get-stories",
|
|
115
115
|
name: "Get Stories",
|