@keystrokehq/news_api 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,15 +16,15 @@ declare const NewsApiGetEverythingInput: z.ZodObject<{
16
16
  language: z.ZodOptional<z.ZodEnum<{
17
17
  ar: "ar";
18
18
  de: "de";
19
- en: "en";
20
- es: "es";
21
19
  fr: "fr";
22
- he: "he";
23
20
  it: "it";
24
21
  nl: "nl";
25
22
  no: "no";
26
23
  pt: "pt";
27
24
  ru: "ru";
25
+ en: "en";
26
+ es: "es";
27
+ he: "he";
28
28
  sv: "sv";
29
29
  ud: "ud";
30
30
  zh: "zh";
@@ -58,11 +58,23 @@ declare const newsApiGetEverything: import("@keystrokehq/action").WorkflowAction
58
58
  sortBy?: "publishedAt" | "relevancy" | "popularity" | undefined;
59
59
  domains?: string | undefined;
60
60
  sources?: string | undefined;
61
- language?: "ar" | "de" | "en" | "es" | "fr" | "he" | "it" | "nl" | "no" | "pt" | "ru" | "sv" | "ud" | "zh" | undefined;
61
+ language?: "ar" | "de" | "fr" | "it" | "nl" | "no" | "pt" | "ru" | "en" | "es" | "he" | "sv" | "ud" | "zh" | undefined;
62
62
  pageSize?: number | undefined;
63
63
  qInTitle?: string | undefined;
64
64
  excludeDomains?: string | undefined;
65
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
65
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
66
+ connectionId: z.ZodString;
67
+ entityId: z.ZodString;
68
+ instanceId: z.ZodString;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ generic_api_key: z.ZodString;
71
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
72
+ connectionId: z.ZodString;
73
+ entityId: z.ZodString;
74
+ instanceId: z.ZodString;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ generic_api_key: z.ZodString;
77
+ }, z.core.$strip>>]>;
66
78
  //#endregion
67
79
  export { newsApiGetEverything };
68
80
  //# sourceMappingURL=get-everything.d.cts.map
@@ -16,15 +16,15 @@ declare const NewsApiGetEverythingInput: z.ZodObject<{
16
16
  language: z.ZodOptional<z.ZodEnum<{
17
17
  ar: "ar";
18
18
  de: "de";
19
- en: "en";
20
- es: "es";
21
19
  fr: "fr";
22
- he: "he";
23
20
  it: "it";
24
21
  nl: "nl";
25
22
  no: "no";
26
23
  pt: "pt";
27
24
  ru: "ru";
25
+ en: "en";
26
+ es: "es";
27
+ he: "he";
28
28
  sv: "sv";
29
29
  ud: "ud";
30
30
  zh: "zh";
@@ -58,11 +58,23 @@ declare const newsApiGetEverything: import("@keystrokehq/action").WorkflowAction
58
58
  sortBy?: "publishedAt" | "relevancy" | "popularity" | undefined;
59
59
  domains?: string | undefined;
60
60
  sources?: string | undefined;
61
- language?: "ar" | "de" | "en" | "es" | "fr" | "he" | "it" | "nl" | "no" | "pt" | "ru" | "sv" | "ud" | "zh" | undefined;
61
+ language?: "ar" | "de" | "fr" | "it" | "nl" | "no" | "pt" | "ru" | "en" | "es" | "he" | "sv" | "ud" | "zh" | undefined;
62
62
  pageSize?: number | undefined;
63
63
  qInTitle?: string | undefined;
64
64
  excludeDomains?: string | undefined;
65
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
65
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
66
+ connectionId: z.ZodString;
67
+ entityId: z.ZodString;
68
+ instanceId: z.ZodString;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ generic_api_key: z.ZodString;
71
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
72
+ connectionId: z.ZodString;
73
+ entityId: z.ZodString;
74
+ instanceId: z.ZodString;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ generic_api_key: z.ZodString;
77
+ }, z.core.$strip>>]>;
66
78
  //#endregion
67
79
  export { newsApiGetEverything };
68
80
  //# sourceMappingURL=get-everything.d.mts.map
@@ -3,18 +3,11 @@ import { z } from "zod";
3
3
  //#region src/actions/get-sources.d.ts
4
4
  declare const NewsApiGetSourcesInput: z.ZodObject<{
5
5
  country: z.ZodOptional<z.ZodEnum<{
6
- in: "in";
7
6
  at: "at";
8
7
  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";
8
+ in: "in";
17
9
  ae: "ae";
10
+ ar: "ar";
18
11
  au: "au";
19
12
  be: "be";
20
13
  bg: "bg";
@@ -25,14 +18,16 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
25
18
  co: "co";
26
19
  cu: "cu";
27
20
  cz: "cz";
21
+ de: "de";
28
22
  eg: "eg";
23
+ fr: "fr";
29
24
  gb: "gb";
30
25
  gr: "gr";
31
26
  hk: "hk";
32
27
  hu: "hu";
33
28
  ie: "ie";
34
29
  il: "il";
35
- is: "is";
30
+ it: "it";
36
31
  jp: "jp";
37
32
  kr: "kr";
38
33
  lt: "lt";
@@ -41,11 +36,15 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
41
36
  mx: "mx";
42
37
  my: "my";
43
38
  ng: "ng";
39
+ nl: "nl";
40
+ no: "no";
44
41
  nz: "nz";
45
42
  ph: "ph";
46
43
  pl: "pl";
44
+ pt: "pt";
47
45
  ro: "ro";
48
46
  rs: "rs";
47
+ ru: "ru";
49
48
  sa: "sa";
50
49
  se: "se";
51
50
  sg: "sg";
@@ -58,6 +57,7 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
58
57
  us: "us";
59
58
  ve: "ve";
60
59
  za: "za";
60
+ is: "is";
61
61
  }>>;
62
62
  category: z.ZodOptional<z.ZodEnum<{
63
63
  business: "business";
@@ -71,18 +71,18 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
71
71
  language: z.ZodOptional<z.ZodEnum<{
72
72
  ar: "ar";
73
73
  de: "de";
74
- en: "en";
75
- es: "es";
76
74
  fr: "fr";
77
- he: "he";
78
75
  it: "it";
79
76
  nl: "nl";
80
77
  no: "no";
81
78
  pt: "pt";
82
79
  ru: "ru";
80
+ se: "se";
81
+ en: "en";
82
+ es: "es";
83
+ he: "he";
83
84
  ud: "ud";
84
85
  zh: "zh";
85
- se: "se";
86
86
  }>>;
87
87
  }, z.core.$strip>;
88
88
  declare const NewsApiGetSourcesOutput: z.ZodObject<{
@@ -101,10 +101,22 @@ declare const NewsApiGetSourcesOutput: z.ZodObject<{
101
101
  }, z.core.$loose>>;
102
102
  }, z.core.$loose>;
103
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;
104
+ country?: "at" | "id" | "in" | "ae" | "ar" | "au" | "be" | "bg" | "br" | "ca" | "ch" | "cn" | "co" | "cu" | "cz" | "de" | "eg" | "fr" | "gb" | "gr" | "hk" | "hu" | "ie" | "il" | "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" | "is" | undefined;
105
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]>;
106
+ language?: "ar" | "de" | "fr" | "it" | "nl" | "no" | "pt" | "ru" | "se" | "en" | "es" | "he" | "ud" | "zh" | undefined;
107
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
108
+ connectionId: z.ZodString;
109
+ entityId: z.ZodString;
110
+ instanceId: z.ZodString;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ generic_api_key: z.ZodString;
113
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
114
+ connectionId: z.ZodString;
115
+ entityId: z.ZodString;
116
+ instanceId: z.ZodString;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ generic_api_key: z.ZodString;
119
+ }, z.core.$strip>>]>;
108
120
  //#endregion
109
121
  export { newsApiGetSources };
110
122
  //# sourceMappingURL=get-sources.d.cts.map
@@ -3,18 +3,11 @@ import { z } from "zod";
3
3
  //#region src/actions/get-sources.d.ts
4
4
  declare const NewsApiGetSourcesInput: z.ZodObject<{
5
5
  country: z.ZodOptional<z.ZodEnum<{
6
- in: "in";
7
6
  at: "at";
8
7
  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";
8
+ in: "in";
17
9
  ae: "ae";
10
+ ar: "ar";
18
11
  au: "au";
19
12
  be: "be";
20
13
  bg: "bg";
@@ -25,14 +18,16 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
25
18
  co: "co";
26
19
  cu: "cu";
27
20
  cz: "cz";
21
+ de: "de";
28
22
  eg: "eg";
23
+ fr: "fr";
29
24
  gb: "gb";
30
25
  gr: "gr";
31
26
  hk: "hk";
32
27
  hu: "hu";
33
28
  ie: "ie";
34
29
  il: "il";
35
- is: "is";
30
+ it: "it";
36
31
  jp: "jp";
37
32
  kr: "kr";
38
33
  lt: "lt";
@@ -41,11 +36,15 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
41
36
  mx: "mx";
42
37
  my: "my";
43
38
  ng: "ng";
39
+ nl: "nl";
40
+ no: "no";
44
41
  nz: "nz";
45
42
  ph: "ph";
46
43
  pl: "pl";
44
+ pt: "pt";
47
45
  ro: "ro";
48
46
  rs: "rs";
47
+ ru: "ru";
49
48
  sa: "sa";
50
49
  se: "se";
51
50
  sg: "sg";
@@ -58,6 +57,7 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
58
57
  us: "us";
59
58
  ve: "ve";
60
59
  za: "za";
60
+ is: "is";
61
61
  }>>;
62
62
  category: z.ZodOptional<z.ZodEnum<{
63
63
  business: "business";
@@ -71,18 +71,18 @@ declare const NewsApiGetSourcesInput: z.ZodObject<{
71
71
  language: z.ZodOptional<z.ZodEnum<{
72
72
  ar: "ar";
73
73
  de: "de";
74
- en: "en";
75
- es: "es";
76
74
  fr: "fr";
77
- he: "he";
78
75
  it: "it";
79
76
  nl: "nl";
80
77
  no: "no";
81
78
  pt: "pt";
82
79
  ru: "ru";
80
+ se: "se";
81
+ en: "en";
82
+ es: "es";
83
+ he: "he";
83
84
  ud: "ud";
84
85
  zh: "zh";
85
- se: "se";
86
86
  }>>;
87
87
  }, z.core.$strip>;
88
88
  declare const NewsApiGetSourcesOutput: z.ZodObject<{
@@ -101,10 +101,22 @@ declare const NewsApiGetSourcesOutput: z.ZodObject<{
101
101
  }, z.core.$loose>>;
102
102
  }, z.core.$loose>;
103
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;
104
+ country?: "at" | "id" | "in" | "ae" | "ar" | "au" | "be" | "bg" | "br" | "ca" | "ch" | "cn" | "co" | "cu" | "cz" | "de" | "eg" | "fr" | "gb" | "gr" | "hk" | "hu" | "ie" | "il" | "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" | "is" | undefined;
105
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]>;
106
+ language?: "ar" | "de" | "fr" | "it" | "nl" | "no" | "pt" | "ru" | "se" | "en" | "es" | "he" | "ud" | "zh" | undefined;
107
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
108
+ connectionId: z.ZodString;
109
+ entityId: z.ZodString;
110
+ instanceId: z.ZodString;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ generic_api_key: z.ZodString;
113
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
114
+ connectionId: z.ZodString;
115
+ entityId: z.ZodString;
116
+ instanceId: z.ZodString;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ generic_api_key: z.ZodString;
119
+ }, z.core.$strip>>]>;
108
120
  //#endregion
109
121
  export { newsApiGetSources };
110
122
  //# sourceMappingURL=get-sources.d.mts.map
@@ -5,18 +5,11 @@ declare const NewsApiGetTopHeadlinesInput: z.ZodObject<{
5
5
  q: z.ZodOptional<z.ZodString>;
6
6
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
7
  country: z.ZodOptional<z.ZodEnum<{
8
- in: "in";
9
8
  at: "at";
10
9
  id: "id";
11
- ar: "ar";
12
- de: "de";
13
- fr: "fr";
14
- it: "it";
15
- nl: "nl";
16
- no: "no";
17
- pt: "pt";
18
- ru: "ru";
10
+ in: "in";
19
11
  ae: "ae";
12
+ ar: "ar";
20
13
  au: "au";
21
14
  be: "be";
22
15
  bg: "bg";
@@ -27,13 +20,16 @@ declare const NewsApiGetTopHeadlinesInput: z.ZodObject<{
27
20
  co: "co";
28
21
  cu: "cu";
29
22
  cz: "cz";
23
+ de: "de";
30
24
  eg: "eg";
25
+ fr: "fr";
31
26
  gb: "gb";
32
27
  gr: "gr";
33
28
  hk: "hk";
34
29
  hu: "hu";
35
30
  ie: "ie";
36
31
  il: "il";
32
+ it: "it";
37
33
  jp: "jp";
38
34
  kr: "kr";
39
35
  lt: "lt";
@@ -42,11 +38,15 @@ declare const NewsApiGetTopHeadlinesInput: z.ZodObject<{
42
38
  mx: "mx";
43
39
  my: "my";
44
40
  ng: "ng";
41
+ nl: "nl";
42
+ no: "no";
45
43
  nz: "nz";
46
44
  ph: "ph";
47
45
  pl: "pl";
46
+ pt: "pt";
48
47
  ro: "ro";
49
48
  rs: "rs";
49
+ ru: "ru";
50
50
  sa: "sa";
51
51
  se: "se";
52
52
  sg: "sg";
@@ -95,11 +95,23 @@ declare const NewsApiGetTopHeadlinesOutput: z.ZodObject<{
95
95
  declare const newsApiGetTopHeadlines: import("@keystrokehq/action").WorkflowActionDefinition<{
96
96
  q?: string | undefined;
97
97
  page?: number | undefined;
98
- 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" | "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;
98
+ country?: "at" | "id" | "in" | "ae" | "ar" | "au" | "be" | "bg" | "br" | "ca" | "ch" | "cn" | "co" | "cu" | "cz" | "de" | "eg" | "fr" | "gb" | "gr" | "hk" | "hu" | "ie" | "il" | "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" | undefined;
99
99
  sources?: string | undefined;
100
100
  category?: "business" | "entertainment" | "general" | "health" | "science" | "sports" | "technology" | undefined;
101
101
  pageSize?: number | undefined;
102
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
102
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
103
+ connectionId: z.ZodString;
104
+ entityId: z.ZodString;
105
+ instanceId: z.ZodString;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ generic_api_key: z.ZodString;
108
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
109
+ connectionId: z.ZodString;
110
+ entityId: z.ZodString;
111
+ instanceId: z.ZodString;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ generic_api_key: z.ZodString;
114
+ }, z.core.$strip>>]>;
103
115
  //#endregion
104
116
  export { newsApiGetTopHeadlines };
105
117
  //# sourceMappingURL=get-top-headlines.d.cts.map
@@ -5,18 +5,11 @@ declare const NewsApiGetTopHeadlinesInput: z.ZodObject<{
5
5
  q: z.ZodOptional<z.ZodString>;
6
6
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
7
  country: z.ZodOptional<z.ZodEnum<{
8
- in: "in";
9
8
  at: "at";
10
9
  id: "id";
11
- ar: "ar";
12
- de: "de";
13
- fr: "fr";
14
- it: "it";
15
- nl: "nl";
16
- no: "no";
17
- pt: "pt";
18
- ru: "ru";
10
+ in: "in";
19
11
  ae: "ae";
12
+ ar: "ar";
20
13
  au: "au";
21
14
  be: "be";
22
15
  bg: "bg";
@@ -27,13 +20,16 @@ declare const NewsApiGetTopHeadlinesInput: z.ZodObject<{
27
20
  co: "co";
28
21
  cu: "cu";
29
22
  cz: "cz";
23
+ de: "de";
30
24
  eg: "eg";
25
+ fr: "fr";
31
26
  gb: "gb";
32
27
  gr: "gr";
33
28
  hk: "hk";
34
29
  hu: "hu";
35
30
  ie: "ie";
36
31
  il: "il";
32
+ it: "it";
37
33
  jp: "jp";
38
34
  kr: "kr";
39
35
  lt: "lt";
@@ -42,11 +38,15 @@ declare const NewsApiGetTopHeadlinesInput: z.ZodObject<{
42
38
  mx: "mx";
43
39
  my: "my";
44
40
  ng: "ng";
41
+ nl: "nl";
42
+ no: "no";
45
43
  nz: "nz";
46
44
  ph: "ph";
47
45
  pl: "pl";
46
+ pt: "pt";
48
47
  ro: "ro";
49
48
  rs: "rs";
49
+ ru: "ru";
50
50
  sa: "sa";
51
51
  se: "se";
52
52
  sg: "sg";
@@ -95,11 +95,23 @@ declare const NewsApiGetTopHeadlinesOutput: z.ZodObject<{
95
95
  declare const newsApiGetTopHeadlines: import("@keystrokehq/action").WorkflowActionDefinition<{
96
96
  q?: string | undefined;
97
97
  page?: number | undefined;
98
- 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" | "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;
98
+ country?: "at" | "id" | "in" | "ae" | "ar" | "au" | "be" | "bg" | "br" | "ca" | "ch" | "cn" | "co" | "cu" | "cz" | "de" | "eg" | "fr" | "gb" | "gr" | "hk" | "hu" | "ie" | "il" | "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" | undefined;
99
99
  sources?: string | undefined;
100
100
  category?: "business" | "entertainment" | "general" | "health" | "science" | "sports" | "technology" | undefined;
101
101
  pageSize?: number | undefined;
102
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
102
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
103
+ connectionId: z.ZodString;
104
+ entityId: z.ZodString;
105
+ instanceId: z.ZodString;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ generic_api_key: z.ZodString;
108
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
109
+ connectionId: z.ZodString;
110
+ entityId: z.ZodString;
111
+ instanceId: z.ZodString;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ generic_api_key: z.ZodString;
114
+ }, z.core.$strip>>]>;
103
115
  //#endregion
104
116
  export { newsApiGetTopHeadlines };
105
117
  //# sourceMappingURL=get-top-headlines.d.mts.map
@@ -25,7 +25,19 @@ declare const NewsApiGetV1ArticlesOutput: z.ZodObject<{
25
25
  declare const newsApiGetV1Articles: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  source: string;
27
27
  sortBy?: "top" | "latest" | "popular" | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
29
+ connectionId: z.ZodString;
30
+ entityId: z.ZodString;
31
+ instanceId: z.ZodString;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ generic_api_key: z.ZodString;
34
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ generic_api_key: z.ZodString;
40
+ }, z.core.$strip>>]>;
29
41
  //#endregion
30
42
  export { newsApiGetV1Articles };
31
43
  //# sourceMappingURL=get-v1-articles.d.cts.map
@@ -25,7 +25,19 @@ declare const NewsApiGetV1ArticlesOutput: z.ZodObject<{
25
25
  declare const newsApiGetV1Articles: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  source: string;
27
27
  sortBy?: "top" | "latest" | "popular" | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
29
+ connectionId: z.ZodString;
30
+ entityId: z.ZodString;
31
+ instanceId: z.ZodString;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ generic_api_key: z.ZodString;
34
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ generic_api_key: z.ZodString;
40
+ }, z.core.$strip>>]>;
29
41
  //#endregion
30
42
  export { newsApiGetV1Articles };
31
43
  //# sourceMappingURL=get-v1-articles.d.mts.map
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
+ let zod = require("zod");
1
3
  //#region src/app.ts
2
- const newsApi = (0, require("@keystrokehq/keystroke/app").defineApp)({
4
+ const newsApi = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "news_api",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential: { generic_api_key: zod.z.string() }
5
8
  });
6
9
  //#endregion
7
10
  exports.newsApi = newsApi;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const newsApi = defineApp({\n slug: \"news_api\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const newsApi = defineApp({\n slug: \"news_api\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,13 @@
1
+ import { z } from "zod";
2
+
1
3
  //#region src/app.d.ts
2
- declare const newsApi: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
4
+ declare const newsApi: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
5
+ connectionId: z.ZodString;
6
+ entityId: z.ZodString;
7
+ instanceId: z.ZodString;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ generic_api_key: z.ZodString;
10
+ }, z.core.$strip>>>;
3
11
  //#endregion
4
12
  export { newsApi };
5
13
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,aAAA,CAAA,CAAA,SAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,13 @@
1
+ import { z } from "zod";
2
+
1
3
  //#region src/app.d.ts
2
- declare const newsApi: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
4
+ declare const newsApi: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"news_api", z.ZodObject<{
5
+ connectionId: z.ZodString;
6
+ entityId: z.ZodString;
7
+ instanceId: z.ZodString;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ generic_api_key: z.ZodString;
10
+ }, z.core.$strip>>>;
3
11
  //#endregion
4
12
  export { newsApi };
5
13
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,aAAA,CAAA,CAAA,SAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
2
3
  //#region src/app.ts
3
4
  const newsApi = defineApp({
4
5
  slug: "news_api",
5
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential: { generic_api_key: z.string() }
6
8
  });
7
9
  //#endregion
8
10
  export { newsApi };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const newsApi = defineApp({\n slug: \"news_api\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const newsApi = defineApp({\n slug: \"news_api\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/news_api",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"