@keystrokehq/news_api 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-everything.cjs +9 -9
- package/dist/actions/get-everything.cjs.map +1 -1
- package/dist/actions/get-everything.d.cts +62 -3
- package/dist/actions/get-everything.d.cts.map +1 -1
- package/dist/actions/get-everything.d.mts +62 -3
- package/dist/actions/get-everything.d.mts.map +1 -1
- package/dist/actions/get-everything.mjs +9 -9
- package/dist/actions/get-everything.mjs.map +1 -1
- package/dist/actions/get-sources.cjs +10 -10
- package/dist/actions/get-sources.cjs.map +1 -1
- package/dist/actions/get-sources.d.cts +104 -3
- package/dist/actions/get-sources.d.cts.map +1 -1
- package/dist/actions/get-sources.d.mts +104 -3
- package/dist/actions/get-sources.d.mts.map +1 -1
- package/dist/actions/get-sources.mjs +10 -10
- package/dist/actions/get-sources.mjs.map +1 -1
- package/dist/actions/get-top-headlines.cjs +9 -9
- package/dist/actions/get-top-headlines.cjs.map +1 -1
- package/dist/actions/get-top-headlines.d.cts +99 -3
- package/dist/actions/get-top-headlines.d.cts.map +1 -1
- package/dist/actions/get-top-headlines.d.mts +99 -3
- package/dist/actions/get-top-headlines.d.mts.map +1 -1
- package/dist/actions/get-top-headlines.mjs +9 -9
- package/dist/actions/get-top-headlines.mjs.map +1 -1
- package/dist/actions/get-v1-articles.cjs +2 -2
- package/dist/actions/get-v1-articles.cjs.map +1 -1
- package/dist/actions/get-v1-articles.d.cts +25 -3
- package/dist/actions/get-v1-articles.d.cts.map +1 -1
- package/dist/actions/get-v1-articles.d.mts +25 -3
- package/dist/actions/get-v1-articles.d.mts.map +1 -1
- package/dist/actions/get-v1-articles.mjs +2 -2
- package/dist/actions/get-v1-articles.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["newsApi","executeNewsApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { newsApi } from \"./app\";\nimport { executeNewsApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["newsApi","executeNewsApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { newsApi } from \"./app\";\nimport { executeNewsApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return newsApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNewsApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { newsApi } from \"./app\";\nimport { executeNewsApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { newsApi } from \"./app\";\nimport { executeNewsApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return newsApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNewsApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -35,23 +35,23 @@ const NewsApiGetEverythingInput = zod.z.object({
|
|
|
35
35
|
}).describe("Request schema for GET /v2/everything endpoint.");
|
|
36
36
|
const NewsApiGetEverything_ArticleSourceSchema = zod.z.object({
|
|
37
37
|
id: zod.z.string().describe("Identifier for the source").nullable().optional(),
|
|
38
|
-
name: zod.z.string().describe("Name of the source")
|
|
39
|
-
});
|
|
38
|
+
name: zod.z.string().describe("Name of the source").nullable()
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const NewsApiGetEverything_ArticleSchema = zod.z.object({
|
|
41
|
-
url: zod.z.string().describe("URL to the full article"),
|
|
42
|
-
title: zod.z.string().describe("Title of the article"),
|
|
41
|
+
url: zod.z.string().describe("URL to the full article").nullable(),
|
|
42
|
+
title: zod.z.string().describe("Title of the article").nullable(),
|
|
43
43
|
author: zod.z.string().describe("Author of the article").nullable().optional(),
|
|
44
44
|
source: NewsApiGetEverything_ArticleSourceSchema.nullable(),
|
|
45
45
|
content: zod.z.string().describe("Content of the article").nullable().optional(),
|
|
46
46
|
urlToImage: zod.z.string().describe("URL to the image of the article").nullable().optional(),
|
|
47
47
|
description: zod.z.string().describe("Description of the article").nullable().optional(),
|
|
48
|
-
publishedAt: zod.z.string().describe("Publication date/time in ISO8601 format")
|
|
49
|
-
});
|
|
48
|
+
publishedAt: zod.z.string().describe("Publication date/time in ISO8601 format").nullable()
|
|
49
|
+
}).passthrough();
|
|
50
50
|
const NewsApiGetEverythingOutput = zod.z.object({
|
|
51
|
-
status: zod.z.string().describe("'ok' or 'error' status of the response"),
|
|
51
|
+
status: zod.z.string().describe("'ok' or 'error' status of the response").nullable(),
|
|
52
52
|
articles: zod.z.array(NewsApiGetEverything_ArticleSchema).describe("List of articles matching the query"),
|
|
53
|
-
totalResults: zod.z.number().int().describe("Total number of results available")
|
|
54
|
-
});
|
|
53
|
+
totalResults: zod.z.number().int().describe("Total number of results available").nullable()
|
|
54
|
+
}).passthrough();
|
|
55
55
|
const newsApiGetEverything = require_action.action("NEWS_API_GET_EVERYTHING", {
|
|
56
56
|
slug: "news_api-get-everything",
|
|
57
57
|
name: "Get Everything",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-everything.cjs","names":["z","action"],"sources":["../../src/actions/get-everything.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NewsApiGetEverythingInput
|
|
1
|
+
{"version":3,"file":"get-everything.cjs","names":["z","action"],"sources":["../../src/actions/get-everything.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NewsApiGetEverythingInput = z.object({\n q: z.string().describe(\"Keywords or phrases to search for in the article title and body\").optional(),\n to: z.string().describe(\"Newest date or date-time for articles (YYYY-MM-DD or YYYY-MM-DDThh:mm:ss). Date range limits depend on your News API plan tier (free plans are limited to approximately 1 month of historical data)\").optional(),\n from: z.string().describe(\"Oldest date or date-time for articles (YYYY-MM-DD or YYYY-MM-DDThh:mm:ss). Date range limits depend on your News API plan tier (free plans are limited to approximately 1 month of historical data)\").optional(),\n page: z.number().int().describe(\"Page number of results to return (default 1) When totalResults exceeds pageSize, increment page to retrieve additional results.\").optional(),\n sortBy: z.enum([\"relevancy\", \"popularity\", \"publishedAt\"]).describe(\"Order to sort articles: relevancy, popularity, or publishedAt\").optional(),\n domains: z.string().describe(\"Comma-separated list of domains to include in results\").optional(),\n sources: z.string().describe(\"Comma-separated list of source identifiers to filter on Use valid source IDs from NEWS_API_GET_SOURCES; unrecognized IDs silently return empty results.\").optional(),\n language: z.enum([\"ar\", \"de\", \"en\", \"es\", \"fr\", \"he\", \"it\", \"nl\", \"no\", \"pt\", \"ru\", \"sv\", \"ud\", \"zh\"]).describe(\"2-letter ISO-639-1 code to restrict the search to that language\").optional(),\n pageSize: z.number().int().describe(\"Number of results per page (default 20, max 100)\").optional(),\n qInTitle: z.string().describe(\"Keywords or phrases to search for in the article title only\").optional(),\n excludeDomains: z.string().describe(\"Comma-separated list of domains to exclude from results\").optional(),\n}).describe(\"Request schema for GET /v2/everything endpoint.\");\nconst NewsApiGetEverything_ArticleSourceSchema = z.object({\n id: z.string().describe(\"Identifier for the source\").nullable().optional(),\n name: z.string().describe(\"Name of the source\").nullable(),\n}).passthrough();\nconst NewsApiGetEverything_ArticleSchema = z.object({\n url: z.string().describe(\"URL to the full article\").nullable(),\n title: z.string().describe(\"Title of the article\").nullable(),\n author: z.string().describe(\"Author of the article\").nullable().optional(),\n source: NewsApiGetEverything_ArticleSourceSchema.nullable(),\n content: z.string().describe(\"Content of the article\").nullable().optional(),\n urlToImage: z.string().describe(\"URL to the image of the article\").nullable().optional(),\n description: z.string().describe(\"Description of the article\").nullable().optional(),\n publishedAt: z.string().describe(\"Publication date/time in ISO8601 format\").nullable(),\n}).passthrough();\nexport const NewsApiGetEverythingOutput = z.object({\n status: z.string().describe(\"'ok' or 'error' status of the response\").nullable(),\n articles: z.array(NewsApiGetEverything_ArticleSchema).describe(\"List of articles matching the query\"),\n totalResults: z.number().int().describe(\"Total number of results available\").nullable(),\n}).passthrough();\n\nexport const newsApiGetEverything = action(\"NEWS_API_GET_EVERYTHING\", {\n slug: \"news_api-get-everything\",\n name: \"Get Everything\",\n description: \"Tool to search through every article published by over 150,000 sources. At least one of q, sources, language, or domains must be set or the API returns a parametersMissing error. Historical date range depends on your News API plan tier (free plans limited to ~1 month). No country parameter exists; target geography via sources, domains, or country-specific terms in q. Burst requests may trigger HTTP 429; apply backoff on throttling errors.\",\n input: NewsApiGetEverythingInput,\n output: NewsApiGetEverythingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACnG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACxO,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC1O,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC5K,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAc;CAAa,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACjM,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;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AC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,qCAAqC;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-everything.d.ts
|
|
4
|
-
declare const NewsApiGetEverythingInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NewsApiGetEverythingInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodOptional<z.ZodString>;
|
|
6
|
+
to: z.ZodOptional<z.ZodString>;
|
|
7
|
+
from: z.ZodOptional<z.ZodString>;
|
|
8
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
publishedAt: "publishedAt";
|
|
11
|
+
relevancy: "relevancy";
|
|
12
|
+
popularity: "popularity";
|
|
13
|
+
}>>;
|
|
14
|
+
domains: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sources: z.ZodOptional<z.ZodString>;
|
|
16
|
+
language: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
ar: "ar";
|
|
18
|
+
de: "de";
|
|
19
|
+
en: "en";
|
|
20
|
+
es: "es";
|
|
21
|
+
fr: "fr";
|
|
22
|
+
he: "he";
|
|
23
|
+
it: "it";
|
|
24
|
+
nl: "nl";
|
|
25
|
+
no: "no";
|
|
26
|
+
pt: "pt";
|
|
27
|
+
ru: "ru";
|
|
28
|
+
sv: "sv";
|
|
29
|
+
ud: "ud";
|
|
30
|
+
zh: "zh";
|
|
31
|
+
}>>;
|
|
32
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
qInTitle: z.ZodOptional<z.ZodString>;
|
|
34
|
+
excludeDomains: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const NewsApiGetEverythingOutput: z.ZodObject<{
|
|
37
|
+
status: z.ZodNullable<z.ZodString>;
|
|
38
|
+
articles: z.ZodArray<z.ZodObject<{
|
|
39
|
+
url: z.ZodNullable<z.ZodString>;
|
|
40
|
+
title: z.ZodNullable<z.ZodString>;
|
|
41
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
name: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
urlToImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
|
+
totalResults: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
declare const newsApiGetEverything: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
q?: string | undefined;
|
|
55
|
+
to?: string | undefined;
|
|
56
|
+
from?: string | undefined;
|
|
57
|
+
page?: number | undefined;
|
|
58
|
+
sortBy?: "publishedAt" | "relevancy" | "popularity" | undefined;
|
|
59
|
+
domains?: string | undefined;
|
|
60
|
+
sources?: string | undefined;
|
|
61
|
+
language?: "ar" | "de" | "en" | "es" | "fr" | "he" | "it" | "nl" | "no" | "pt" | "ru" | "sv" | "ud" | "zh" | undefined;
|
|
62
|
+
pageSize?: number | undefined;
|
|
63
|
+
qInTitle?: string | undefined;
|
|
64
|
+
excludeDomains?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { newsApiGetEverything };
|
|
9
68
|
//# sourceMappingURL=get-everything.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-everything.d.cts","names":[],"sources":["../../src/actions/get-everything.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-everything.d.cts","names":[],"sources":["../../src/actions/get-everything.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-everything.d.ts
|
|
4
|
-
declare const NewsApiGetEverythingInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NewsApiGetEverythingInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodOptional<z.ZodString>;
|
|
6
|
+
to: z.ZodOptional<z.ZodString>;
|
|
7
|
+
from: z.ZodOptional<z.ZodString>;
|
|
8
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
publishedAt: "publishedAt";
|
|
11
|
+
relevancy: "relevancy";
|
|
12
|
+
popularity: "popularity";
|
|
13
|
+
}>>;
|
|
14
|
+
domains: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sources: z.ZodOptional<z.ZodString>;
|
|
16
|
+
language: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
ar: "ar";
|
|
18
|
+
de: "de";
|
|
19
|
+
en: "en";
|
|
20
|
+
es: "es";
|
|
21
|
+
fr: "fr";
|
|
22
|
+
he: "he";
|
|
23
|
+
it: "it";
|
|
24
|
+
nl: "nl";
|
|
25
|
+
no: "no";
|
|
26
|
+
pt: "pt";
|
|
27
|
+
ru: "ru";
|
|
28
|
+
sv: "sv";
|
|
29
|
+
ud: "ud";
|
|
30
|
+
zh: "zh";
|
|
31
|
+
}>>;
|
|
32
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
qInTitle: z.ZodOptional<z.ZodString>;
|
|
34
|
+
excludeDomains: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const NewsApiGetEverythingOutput: z.ZodObject<{
|
|
37
|
+
status: z.ZodNullable<z.ZodString>;
|
|
38
|
+
articles: z.ZodArray<z.ZodObject<{
|
|
39
|
+
url: z.ZodNullable<z.ZodString>;
|
|
40
|
+
title: z.ZodNullable<z.ZodString>;
|
|
41
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
name: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
urlToImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
|
+
totalResults: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
declare const newsApiGetEverything: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
q?: string | undefined;
|
|
55
|
+
to?: string | undefined;
|
|
56
|
+
from?: string | undefined;
|
|
57
|
+
page?: number | undefined;
|
|
58
|
+
sortBy?: "publishedAt" | "relevancy" | "popularity" | undefined;
|
|
59
|
+
domains?: string | undefined;
|
|
60
|
+
sources?: string | undefined;
|
|
61
|
+
language?: "ar" | "de" | "en" | "es" | "fr" | "he" | "it" | "nl" | "no" | "pt" | "ru" | "sv" | "ud" | "zh" | undefined;
|
|
62
|
+
pageSize?: number | undefined;
|
|
63
|
+
qInTitle?: string | undefined;
|
|
64
|
+
excludeDomains?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { newsApiGetEverything };
|
|
9
68
|
//# sourceMappingURL=get-everything.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-everything.d.mts","names":[],"sources":["../../src/actions/get-everything.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-everything.d.mts","names":[],"sources":["../../src/actions/get-everything.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -35,28 +35,28 @@ const NewsApiGetEverythingInput = z.object({
|
|
|
35
35
|
}).describe("Request schema for GET /v2/everything endpoint.");
|
|
36
36
|
const NewsApiGetEverything_ArticleSourceSchema = z.object({
|
|
37
37
|
id: z.string().describe("Identifier for the source").nullable().optional(),
|
|
38
|
-
name: z.string().describe("Name of the source")
|
|
39
|
-
});
|
|
38
|
+
name: z.string().describe("Name of the source").nullable()
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const NewsApiGetEverything_ArticleSchema = z.object({
|
|
41
|
-
url: z.string().describe("URL to the full article"),
|
|
42
|
-
title: z.string().describe("Title of the article"),
|
|
41
|
+
url: z.string().describe("URL to the full article").nullable(),
|
|
42
|
+
title: z.string().describe("Title of the article").nullable(),
|
|
43
43
|
author: z.string().describe("Author of the article").nullable().optional(),
|
|
44
44
|
source: NewsApiGetEverything_ArticleSourceSchema.nullable(),
|
|
45
45
|
content: z.string().describe("Content of the article").nullable().optional(),
|
|
46
46
|
urlToImage: z.string().describe("URL to the image of the article").nullable().optional(),
|
|
47
47
|
description: z.string().describe("Description of the article").nullable().optional(),
|
|
48
|
-
publishedAt: z.string().describe("Publication date/time in ISO8601 format")
|
|
49
|
-
});
|
|
48
|
+
publishedAt: z.string().describe("Publication date/time in ISO8601 format").nullable()
|
|
49
|
+
}).passthrough();
|
|
50
50
|
const newsApiGetEverything = action("NEWS_API_GET_EVERYTHING", {
|
|
51
51
|
slug: "news_api-get-everything",
|
|
52
52
|
name: "Get Everything",
|
|
53
53
|
description: "Tool to search through every article published by over 150,000 sources. At least one of q, sources, language, or domains must be set or the API returns a parametersMissing error. Historical date range depends on your News API plan tier (free plans limited to ~1 month). No country parameter exists; target geography via sources, domains, or country-specific terms in q. Burst requests may trigger HTTP 429; apply backoff on throttling errors.",
|
|
54
54
|
input: NewsApiGetEverythingInput,
|
|
55
55
|
output: z.object({
|
|
56
|
-
status: z.string().describe("'ok' or 'error' status of the response"),
|
|
56
|
+
status: z.string().describe("'ok' or 'error' status of the response").nullable(),
|
|
57
57
|
articles: z.array(NewsApiGetEverything_ArticleSchema).describe("List of articles matching the query"),
|
|
58
|
-
totalResults: z.number().int().describe("Total number of results available")
|
|
59
|
-
})
|
|
58
|
+
totalResults: z.number().int().describe("Total number of results available").nullable()
|
|
59
|
+
}).passthrough()
|
|
60
60
|
});
|
|
61
61
|
//#endregion
|
|
62
62
|
export { newsApiGetEverything };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-everything.mjs","names":[],"sources":["../../src/actions/get-everything.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NewsApiGetEverythingInput
|
|
1
|
+
{"version":3,"file":"get-everything.mjs","names":[],"sources":["../../src/actions/get-everything.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NewsApiGetEverythingInput = z.object({\n q: z.string().describe(\"Keywords or phrases to search for in the article title and body\").optional(),\n to: z.string().describe(\"Newest date or date-time for articles (YYYY-MM-DD or YYYY-MM-DDThh:mm:ss). Date range limits depend on your News API plan tier (free plans are limited to approximately 1 month of historical data)\").optional(),\n from: z.string().describe(\"Oldest date or date-time for articles (YYYY-MM-DD or YYYY-MM-DDThh:mm:ss). Date range limits depend on your News API plan tier (free plans are limited to approximately 1 month of historical data)\").optional(),\n page: z.number().int().describe(\"Page number of results to return (default 1) When totalResults exceeds pageSize, increment page to retrieve additional results.\").optional(),\n sortBy: z.enum([\"relevancy\", \"popularity\", \"publishedAt\"]).describe(\"Order to sort articles: relevancy, popularity, or publishedAt\").optional(),\n domains: z.string().describe(\"Comma-separated list of domains to include in results\").optional(),\n sources: z.string().describe(\"Comma-separated list of source identifiers to filter on Use valid source IDs from NEWS_API_GET_SOURCES; unrecognized IDs silently return empty results.\").optional(),\n language: z.enum([\"ar\", \"de\", \"en\", \"es\", \"fr\", \"he\", \"it\", \"nl\", \"no\", \"pt\", \"ru\", \"sv\", \"ud\", \"zh\"]).describe(\"2-letter ISO-639-1 code to restrict the search to that language\").optional(),\n pageSize: z.number().int().describe(\"Number of results per page (default 20, max 100)\").optional(),\n qInTitle: z.string().describe(\"Keywords or phrases to search for in the article title only\").optional(),\n excludeDomains: z.string().describe(\"Comma-separated list of domains to exclude from results\").optional(),\n}).describe(\"Request schema for GET /v2/everything endpoint.\");\nconst NewsApiGetEverything_ArticleSourceSchema = z.object({\n id: z.string().describe(\"Identifier for the source\").nullable().optional(),\n name: z.string().describe(\"Name of the source\").nullable(),\n}).passthrough();\nconst NewsApiGetEverything_ArticleSchema = z.object({\n url: z.string().describe(\"URL to the full article\").nullable(),\n title: z.string().describe(\"Title of the article\").nullable(),\n author: z.string().describe(\"Author of the article\").nullable().optional(),\n source: NewsApiGetEverything_ArticleSourceSchema.nullable(),\n content: z.string().describe(\"Content of the article\").nullable().optional(),\n urlToImage: z.string().describe(\"URL to the image of the article\").nullable().optional(),\n description: z.string().describe(\"Description of the article\").nullable().optional(),\n publishedAt: z.string().describe(\"Publication date/time in ISO8601 format\").nullable(),\n}).passthrough();\nexport const NewsApiGetEverythingOutput = z.object({\n status: z.string().describe(\"'ok' or 'error' status of the response\").nullable(),\n articles: z.array(NewsApiGetEverything_ArticleSchema).describe(\"List of articles matching the query\"),\n totalResults: z.number().int().describe(\"Total number of results available\").nullable(),\n}).passthrough();\n\nexport const newsApiGetEverything = action(\"NEWS_API_GET_EVERYTHING\", {\n slug: \"news_api-get-everything\",\n name: \"Get Everything\",\n description: \"Tool to search through every article published by over 150,000 sources. At least one of q, sources, language, or domains must be set or the API returns a parametersMissing error. Historical date range depends on your News API plan tier (free plans limited to ~1 month). No country parameter exists; target geography via sources, domains, or country-specific terms in q. Burst requests may trigger HTTP 429; apply backoff on throttling errors.\",\n input: NewsApiGetEverythingInput,\n output: NewsApiGetEverythingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACnG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACxO,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC1O,MAA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zE,QAAQ,yCAAyC,SAAS;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,qCAAqC;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -86,18 +86,18 @@ const NewsApiGetSourcesInput = zod.z.object({
|
|
|
86
86
|
]).describe("Filter sources by this language code.").optional()
|
|
87
87
|
}).describe("Request parameters for GET_SOURCES.");
|
|
88
88
|
const NewsApiGetSources_SourceItemSchema = zod.z.object({
|
|
89
|
-
id: zod.z.string().describe("Unique identifier for the source."),
|
|
90
|
-
url: zod.z.string().describe("Homepage URL of the source."),
|
|
91
|
-
name: zod.z.string().describe("Display name of the source."),
|
|
92
|
-
country: zod.z.string().describe("Country code of this source."),
|
|
93
|
-
category: zod.z.string().describe("Category of news for this source."),
|
|
94
|
-
language: zod.z.string().describe("Language code of this source."),
|
|
95
|
-
description: zod.z.string().describe("Short description of the source.")
|
|
96
|
-
}).describe("Single news source item.");
|
|
89
|
+
id: zod.z.string().describe("Unique identifier for the source.").nullable(),
|
|
90
|
+
url: zod.z.string().describe("Homepage URL of the source.").nullable(),
|
|
91
|
+
name: zod.z.string().describe("Display name of the source.").nullable(),
|
|
92
|
+
country: zod.z.string().describe("Country code of this source.").nullable(),
|
|
93
|
+
category: zod.z.string().describe("Category of news for this source.").nullable(),
|
|
94
|
+
language: zod.z.string().describe("Language code of this source.").nullable(),
|
|
95
|
+
description: zod.z.string().describe("Short description of the source.").nullable()
|
|
96
|
+
}).passthrough().describe("Single news source item.");
|
|
97
97
|
const NewsApiGetSourcesOutput = zod.z.object({
|
|
98
|
-
status: zod.z.enum(["ok", "error"]).describe("Response status."),
|
|
98
|
+
status: zod.z.enum(["ok", "error"]).describe("Response status.").nullable(),
|
|
99
99
|
sources: zod.z.array(NewsApiGetSources_SourceItemSchema).describe("List of available news sources.")
|
|
100
|
-
}).describe("Response schema for GET_SOURCES.");
|
|
100
|
+
}).passthrough().describe("Response schema for GET_SOURCES.");
|
|
101
101
|
const newsApiGetSources = require_action.action("NEWS_API_GET_SOURCES", {
|
|
102
102
|
slug: "news_api-get-sources",
|
|
103
103
|
name: "Get 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 NewsApiGetSourcesInput
|
|
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 NewsApiGetSourcesInput = z.object({\n country: z.enum([\"ae\", \"ar\", \"at\", \"au\", \"be\", \"bg\", \"br\", \"ca\", \"ch\", \"cn\", \"co\", \"cu\", \"cz\", \"de\", \"eg\", \"fr\", \"gb\", \"gr\", \"hk\", \"hu\", \"id\", \"ie\", \"il\", \"in\", \"is\", \"it\", \"jp\", \"kr\", \"lt\", \"lv\", \"ma\", \"mx\", \"my\", \"ng\", \"nl\", \"no\", \"nz\", \"ph\", \"pl\", \"pt\", \"ro\", \"rs\", \"ru\", \"sa\", \"se\", \"sg\", \"si\", \"sk\", \"th\", \"tr\", \"tw\", \"ua\", \"us\", \"ve\", \"za\"]).describe(\"Filter sources by this country code.\").optional(),\n category: z.enum([\"business\", \"entertainment\", \"general\", \"health\", \"science\", \"sports\", \"technology\"]).describe(\"Filter sources by this news category.\").optional(),\n language: z.enum([\"ar\", \"de\", \"en\", \"es\", \"fr\", \"he\", \"it\", \"nl\", \"no\", \"pt\", \"ru\", \"se\", \"ud\", \"zh\"]).describe(\"Filter sources by this language code.\").optional(),\n}).describe(\"Request parameters for GET_SOURCES.\");\nconst NewsApiGetSources_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source.\").nullable(),\n url: z.string().describe(\"Homepage URL of the source.\").nullable(),\n name: z.string().describe(\"Display name of the source.\").nullable(),\n country: z.string().describe(\"Country code of this source.\").nullable(),\n category: z.string().describe(\"Category of news for this source.\").nullable(),\n language: z.string().describe(\"Language code of this source.\").nullable(),\n description: z.string().describe(\"Short description of the source.\").nullable(),\n}).passthrough().describe(\"Single news source item.\");\nexport const NewsApiGetSourcesOutput = z.object({\n status: z.enum([\"ok\", \"error\"]).describe(\"Response status.\").nullable(),\n sources: z.array(NewsApiGetSources_SourceItemSchema).describe(\"List of available news sources.\"),\n}).passthrough().describe(\"Response schema for GET_SOURCES.\");\n\nexport const newsApiGetSources = action(\"NEWS_API_GET_SOURCES\", {\n slug: \"news_api-get-sources\",\n name: \"Get Sources\",\n description: \"Tool to fetch available news sources. Use when you need to retrieve a list of publishers by optional filters like category, language, or country. Source IDs returned here are the only valid IDs for filtering in NEWS_API_GET_EVERYTHING or NEWS_API_GET_TOP_HEADLINES — unrecognized IDs cause silently empty results.\",\n input: NewsApiGetSourcesInput,\n output: NewsApiGetSourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAA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OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,iCAAiC;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,oBAAoBC,eAAAA,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,110 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-sources.d.ts
|
|
4
|
-
declare const NewsApiGetSourcesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NewsApiGetSourcesInput: z.ZodObject<{
|
|
5
|
+
country: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
in: "in";
|
|
7
|
+
at: "at";
|
|
8
|
+
id: "id";
|
|
9
|
+
ar: "ar";
|
|
10
|
+
de: "de";
|
|
11
|
+
fr: "fr";
|
|
12
|
+
it: "it";
|
|
13
|
+
nl: "nl";
|
|
14
|
+
no: "no";
|
|
15
|
+
pt: "pt";
|
|
16
|
+
ru: "ru";
|
|
17
|
+
ae: "ae";
|
|
18
|
+
au: "au";
|
|
19
|
+
be: "be";
|
|
20
|
+
bg: "bg";
|
|
21
|
+
br: "br";
|
|
22
|
+
ca: "ca";
|
|
23
|
+
ch: "ch";
|
|
24
|
+
cn: "cn";
|
|
25
|
+
co: "co";
|
|
26
|
+
cu: "cu";
|
|
27
|
+
cz: "cz";
|
|
28
|
+
eg: "eg";
|
|
29
|
+
gb: "gb";
|
|
30
|
+
gr: "gr";
|
|
31
|
+
hk: "hk";
|
|
32
|
+
hu: "hu";
|
|
33
|
+
ie: "ie";
|
|
34
|
+
il: "il";
|
|
35
|
+
is: "is";
|
|
36
|
+
jp: "jp";
|
|
37
|
+
kr: "kr";
|
|
38
|
+
lt: "lt";
|
|
39
|
+
lv: "lv";
|
|
40
|
+
ma: "ma";
|
|
41
|
+
mx: "mx";
|
|
42
|
+
my: "my";
|
|
43
|
+
ng: "ng";
|
|
44
|
+
nz: "nz";
|
|
45
|
+
ph: "ph";
|
|
46
|
+
pl: "pl";
|
|
47
|
+
ro: "ro";
|
|
48
|
+
rs: "rs";
|
|
49
|
+
sa: "sa";
|
|
50
|
+
se: "se";
|
|
51
|
+
sg: "sg";
|
|
52
|
+
si: "si";
|
|
53
|
+
sk: "sk";
|
|
54
|
+
th: "th";
|
|
55
|
+
tr: "tr";
|
|
56
|
+
tw: "tw";
|
|
57
|
+
ua: "ua";
|
|
58
|
+
us: "us";
|
|
59
|
+
ve: "ve";
|
|
60
|
+
za: "za";
|
|
61
|
+
}>>;
|
|
62
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
business: "business";
|
|
64
|
+
entertainment: "entertainment";
|
|
65
|
+
general: "general";
|
|
66
|
+
health: "health";
|
|
67
|
+
science: "science";
|
|
68
|
+
sports: "sports";
|
|
69
|
+
technology: "technology";
|
|
70
|
+
}>>;
|
|
71
|
+
language: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
ar: "ar";
|
|
73
|
+
de: "de";
|
|
74
|
+
en: "en";
|
|
75
|
+
es: "es";
|
|
76
|
+
fr: "fr";
|
|
77
|
+
he: "he";
|
|
78
|
+
it: "it";
|
|
79
|
+
nl: "nl";
|
|
80
|
+
no: "no";
|
|
81
|
+
pt: "pt";
|
|
82
|
+
ru: "ru";
|
|
83
|
+
ud: "ud";
|
|
84
|
+
zh: "zh";
|
|
85
|
+
se: "se";
|
|
86
|
+
}>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
declare const NewsApiGetSourcesOutput: z.ZodObject<{
|
|
89
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
90
|
+
error: "error";
|
|
91
|
+
ok: "ok";
|
|
92
|
+
}>>;
|
|
93
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
94
|
+
id: z.ZodNullable<z.ZodString>;
|
|
95
|
+
url: z.ZodNullable<z.ZodString>;
|
|
96
|
+
name: z.ZodNullable<z.ZodString>;
|
|
97
|
+
country: z.ZodNullable<z.ZodString>;
|
|
98
|
+
category: z.ZodNullable<z.ZodString>;
|
|
99
|
+
language: z.ZodNullable<z.ZodString>;
|
|
100
|
+
description: z.ZodNullable<z.ZodString>;
|
|
101
|
+
}, z.core.$loose>>;
|
|
102
|
+
}, z.core.$loose>;
|
|
103
|
+
declare const newsApiGetSources: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
104
|
+
country?: "in" | "at" | "id" | "ar" | "de" | "fr" | "it" | "nl" | "no" | "pt" | "ru" | "ae" | "au" | "be" | "bg" | "br" | "ca" | "ch" | "cn" | "co" | "cu" | "cz" | "eg" | "gb" | "gr" | "hk" | "hu" | "ie" | "il" | "is" | "jp" | "kr" | "lt" | "lv" | "ma" | "mx" | "my" | "ng" | "nz" | "ph" | "pl" | "ro" | "rs" | "sa" | "se" | "sg" | "si" | "sk" | "th" | "tr" | "tw" | "ua" | "us" | "ve" | "za" | undefined;
|
|
105
|
+
category?: "business" | "entertainment" | "general" | "health" | "science" | "sports" | "technology" | undefined;
|
|
106
|
+
language?: "ar" | "de" | "en" | "es" | "fr" | "he" | "it" | "nl" | "no" | "pt" | "ru" | "ud" | "zh" | "se" | undefined;
|
|
107
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
108
|
//#endregion
|
|
8
109
|
export { newsApiGetSources };
|
|
9
110
|
//# sourceMappingURL=get-sources.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sources.d.cts","names":[],"sources":["../../src/actions/get-sources.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-sources.d.cts","names":[],"sources":["../../src/actions/get-sources.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cActB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,110 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-sources.d.ts
|
|
4
|
-
declare const NewsApiGetSourcesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NewsApiGetSourcesInput: z.ZodObject<{
|
|
5
|
+
country: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
in: "in";
|
|
7
|
+
at: "at";
|
|
8
|
+
id: "id";
|
|
9
|
+
ar: "ar";
|
|
10
|
+
de: "de";
|
|
11
|
+
fr: "fr";
|
|
12
|
+
it: "it";
|
|
13
|
+
nl: "nl";
|
|
14
|
+
no: "no";
|
|
15
|
+
pt: "pt";
|
|
16
|
+
ru: "ru";
|
|
17
|
+
ae: "ae";
|
|
18
|
+
au: "au";
|
|
19
|
+
be: "be";
|
|
20
|
+
bg: "bg";
|
|
21
|
+
br: "br";
|
|
22
|
+
ca: "ca";
|
|
23
|
+
ch: "ch";
|
|
24
|
+
cn: "cn";
|
|
25
|
+
co: "co";
|
|
26
|
+
cu: "cu";
|
|
27
|
+
cz: "cz";
|
|
28
|
+
eg: "eg";
|
|
29
|
+
gb: "gb";
|
|
30
|
+
gr: "gr";
|
|
31
|
+
hk: "hk";
|
|
32
|
+
hu: "hu";
|
|
33
|
+
ie: "ie";
|
|
34
|
+
il: "il";
|
|
35
|
+
is: "is";
|
|
36
|
+
jp: "jp";
|
|
37
|
+
kr: "kr";
|
|
38
|
+
lt: "lt";
|
|
39
|
+
lv: "lv";
|
|
40
|
+
ma: "ma";
|
|
41
|
+
mx: "mx";
|
|
42
|
+
my: "my";
|
|
43
|
+
ng: "ng";
|
|
44
|
+
nz: "nz";
|
|
45
|
+
ph: "ph";
|
|
46
|
+
pl: "pl";
|
|
47
|
+
ro: "ro";
|
|
48
|
+
rs: "rs";
|
|
49
|
+
sa: "sa";
|
|
50
|
+
se: "se";
|
|
51
|
+
sg: "sg";
|
|
52
|
+
si: "si";
|
|
53
|
+
sk: "sk";
|
|
54
|
+
th: "th";
|
|
55
|
+
tr: "tr";
|
|
56
|
+
tw: "tw";
|
|
57
|
+
ua: "ua";
|
|
58
|
+
us: "us";
|
|
59
|
+
ve: "ve";
|
|
60
|
+
za: "za";
|
|
61
|
+
}>>;
|
|
62
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
business: "business";
|
|
64
|
+
entertainment: "entertainment";
|
|
65
|
+
general: "general";
|
|
66
|
+
health: "health";
|
|
67
|
+
science: "science";
|
|
68
|
+
sports: "sports";
|
|
69
|
+
technology: "technology";
|
|
70
|
+
}>>;
|
|
71
|
+
language: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
ar: "ar";
|
|
73
|
+
de: "de";
|
|
74
|
+
en: "en";
|
|
75
|
+
es: "es";
|
|
76
|
+
fr: "fr";
|
|
77
|
+
he: "he";
|
|
78
|
+
it: "it";
|
|
79
|
+
nl: "nl";
|
|
80
|
+
no: "no";
|
|
81
|
+
pt: "pt";
|
|
82
|
+
ru: "ru";
|
|
83
|
+
ud: "ud";
|
|
84
|
+
zh: "zh";
|
|
85
|
+
se: "se";
|
|
86
|
+
}>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
declare const NewsApiGetSourcesOutput: z.ZodObject<{
|
|
89
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
90
|
+
error: "error";
|
|
91
|
+
ok: "ok";
|
|
92
|
+
}>>;
|
|
93
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
94
|
+
id: z.ZodNullable<z.ZodString>;
|
|
95
|
+
url: z.ZodNullable<z.ZodString>;
|
|
96
|
+
name: z.ZodNullable<z.ZodString>;
|
|
97
|
+
country: z.ZodNullable<z.ZodString>;
|
|
98
|
+
category: z.ZodNullable<z.ZodString>;
|
|
99
|
+
language: z.ZodNullable<z.ZodString>;
|
|
100
|
+
description: z.ZodNullable<z.ZodString>;
|
|
101
|
+
}, z.core.$loose>>;
|
|
102
|
+
}, z.core.$loose>;
|
|
103
|
+
declare const newsApiGetSources: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
104
|
+
country?: "in" | "at" | "id" | "ar" | "de" | "fr" | "it" | "nl" | "no" | "pt" | "ru" | "ae" | "au" | "be" | "bg" | "br" | "ca" | "ch" | "cn" | "co" | "cu" | "cz" | "eg" | "gb" | "gr" | "hk" | "hu" | "ie" | "il" | "is" | "jp" | "kr" | "lt" | "lv" | "ma" | "mx" | "my" | "ng" | "nz" | "ph" | "pl" | "ro" | "rs" | "sa" | "se" | "sg" | "si" | "sk" | "th" | "tr" | "tw" | "ua" | "us" | "ve" | "za" | undefined;
|
|
105
|
+
category?: "business" | "entertainment" | "general" | "health" | "science" | "sports" | "technology" | undefined;
|
|
106
|
+
language?: "ar" | "de" | "en" | "es" | "fr" | "he" | "it" | "nl" | "no" | "pt" | "ru" | "ud" | "zh" | "se" | undefined;
|
|
107
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
108
|
//#endregion
|
|
8
109
|
export { newsApiGetSources };
|
|
9
110
|
//# sourceMappingURL=get-sources.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sources.d.mts","names":[],"sources":["../../src/actions/get-sources.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-sources.d.mts","names":[],"sources":["../../src/actions/get-sources.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cActB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|