trendsearch 0.0.1
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/LICENSE +21 -0
- package/README.md +551 -0
- package/bin/trendsearch.mjs +6 -0
- package/dist/cli.d.mts +43 -0
- package/dist/cli.mjs +1444 -0
- package/dist/create-client-B1euQ5Of.mjs +1308 -0
- package/dist/index.d.mts +208 -0
- package/dist/index.mjs +18 -0
- package/dist/public-types-B6pmbT6Z.d.mts +938 -0
- package/package.json +103 -0
|
@@ -0,0 +1,938 @@
|
|
|
1
|
+
import { z, z as z$1 } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/autocomplete.d.ts
|
|
4
|
+
declare const autocompleteRequestSchema: z.ZodObject<{
|
|
5
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
6
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
keyword: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const autocompleteResponseSchema: z.ZodObject<{
|
|
10
|
+
default: z.ZodObject<{
|
|
11
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
12
|
+
mid: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
type: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
type AutocompleteRequest = z.infer<typeof autocompleteRequestSchema>;
|
|
19
|
+
type AutocompleteResponse = z.infer<typeof autocompleteResponseSchema>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/schemas/common.d.ts
|
|
22
|
+
declare const googlePropertySchema: z.ZodEnum<{
|
|
23
|
+
"": "";
|
|
24
|
+
images: "images";
|
|
25
|
+
news: "news";
|
|
26
|
+
youtube: "youtube";
|
|
27
|
+
froogle: "froogle";
|
|
28
|
+
}>;
|
|
29
|
+
declare const resolutionSchema: z.ZodEnum<{
|
|
30
|
+
COUNTRY: "COUNTRY";
|
|
31
|
+
REGION: "REGION";
|
|
32
|
+
CITY: "CITY";
|
|
33
|
+
DMA: "DMA";
|
|
34
|
+
}>;
|
|
35
|
+
declare const topicSchema: z.ZodObject<{
|
|
36
|
+
mid: z.ZodString;
|
|
37
|
+
title: z.ZodString;
|
|
38
|
+
type: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const exploreWidgetSchema: z.ZodObject<{
|
|
41
|
+
request: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
42
|
+
token: z.ZodString;
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
title: z.ZodOptional<z.ZodString>;
|
|
45
|
+
type: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$loose>;
|
|
47
|
+
type GoogleProperty = z.infer<typeof googlePropertySchema>;
|
|
48
|
+
type Resolution = z.infer<typeof resolutionSchema>;
|
|
49
|
+
type Topic = z.infer<typeof topicSchema>;
|
|
50
|
+
type ExploreWidget = z.infer<typeof exploreWidgetSchema>;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/schemas/daily-trends.d.ts
|
|
53
|
+
declare const dailyTrendsRequestSchema: z.ZodObject<{
|
|
54
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
55
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
geo: z.ZodString;
|
|
57
|
+
category: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
58
|
+
date: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
|
|
59
|
+
ns: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const dailyTrendArticleSchema: z.ZodObject<{
|
|
62
|
+
title: z.ZodOptional<z.ZodString>;
|
|
63
|
+
timeAgo: z.ZodOptional<z.ZodString>;
|
|
64
|
+
source: z.ZodOptional<z.ZodString>;
|
|
65
|
+
url: z.ZodOptional<z.ZodString>;
|
|
66
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$loose>;
|
|
68
|
+
declare const dailyTrendItemSchema: z.ZodObject<{
|
|
69
|
+
title: z.ZodObject<{
|
|
70
|
+
query: z.ZodString;
|
|
71
|
+
}, z.core.$loose>;
|
|
72
|
+
formattedTraffic: z.ZodOptional<z.ZodString>;
|
|
73
|
+
relatedQueries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
newsUrl: z.ZodOptional<z.ZodString>;
|
|
76
|
+
source: z.ZodOptional<z.ZodString>;
|
|
77
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
|
+
articles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
title: z.ZodOptional<z.ZodString>;
|
|
81
|
+
timeAgo: z.ZodOptional<z.ZodString>;
|
|
82
|
+
source: z.ZodOptional<z.ZodString>;
|
|
83
|
+
url: z.ZodOptional<z.ZodString>;
|
|
84
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$loose>>>;
|
|
86
|
+
}, z.core.$loose>;
|
|
87
|
+
declare const dailyTrendsResponseSchema: z.ZodObject<{
|
|
88
|
+
default: z.ZodObject<{
|
|
89
|
+
trendingSearchesDays: z.ZodArray<z.ZodObject<{
|
|
90
|
+
date: z.ZodOptional<z.ZodString>;
|
|
91
|
+
formattedDate: z.ZodOptional<z.ZodString>;
|
|
92
|
+
trendingSearches: z.ZodArray<z.ZodObject<{
|
|
93
|
+
title: z.ZodObject<{
|
|
94
|
+
query: z.ZodString;
|
|
95
|
+
}, z.core.$loose>;
|
|
96
|
+
formattedTraffic: z.ZodOptional<z.ZodString>;
|
|
97
|
+
relatedQueries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
newsUrl: z.ZodOptional<z.ZodString>;
|
|
100
|
+
source: z.ZodOptional<z.ZodString>;
|
|
101
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$loose>>;
|
|
103
|
+
articles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
|
+
title: z.ZodOptional<z.ZodString>;
|
|
105
|
+
timeAgo: z.ZodOptional<z.ZodString>;
|
|
106
|
+
source: z.ZodOptional<z.ZodString>;
|
|
107
|
+
url: z.ZodOptional<z.ZodString>;
|
|
108
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$loose>>>;
|
|
110
|
+
}, z.core.$loose>>;
|
|
111
|
+
}, z.core.$loose>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
}, z.core.$loose>;
|
|
114
|
+
type DailyTrendsRequest = z.infer<typeof dailyTrendsRequestSchema>;
|
|
115
|
+
type DailyTrendArticle = z.infer<typeof dailyTrendArticleSchema>;
|
|
116
|
+
type DailyTrendItem = z.infer<typeof dailyTrendItemSchema>;
|
|
117
|
+
type DailyTrendsResponse = z.infer<typeof dailyTrendsResponseSchema>;
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/schemas/experimental-pickers.d.ts
|
|
120
|
+
declare const pickerRequestSchema: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
declare const pickerNodeSchema: z.ZodObject<{
|
|
124
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
125
|
+
name: z.ZodOptional<z.ZodString>;
|
|
126
|
+
type: z.ZodOptional<z.ZodString>;
|
|
127
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
128
|
+
}, z.core.$loose>;
|
|
129
|
+
declare const geoPickerResponseSchema: z.ZodObject<{
|
|
130
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
132
|
+
name: z.ZodOptional<z.ZodString>;
|
|
133
|
+
type: z.ZodOptional<z.ZodString>;
|
|
134
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
135
|
+
}, z.core.$loose>>>;
|
|
136
|
+
}, z.core.$loose>;
|
|
137
|
+
declare const categoryPickerResponseSchema: z.ZodObject<{
|
|
138
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
140
|
+
name: z.ZodOptional<z.ZodString>;
|
|
141
|
+
type: z.ZodOptional<z.ZodString>;
|
|
142
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
143
|
+
}, z.core.$loose>>>;
|
|
144
|
+
}, z.core.$loose>;
|
|
145
|
+
type GeoPickerRequest = z.infer<typeof pickerRequestSchema>;
|
|
146
|
+
type CategoryPickerRequest = z.infer<typeof pickerRequestSchema>;
|
|
147
|
+
type GeoPickerResponse = z.infer<typeof geoPickerResponseSchema>;
|
|
148
|
+
type CategoryPickerResponse = z.infer<typeof categoryPickerResponseSchema>;
|
|
149
|
+
type PickerNode = z.infer<typeof pickerNodeSchema>;
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/schemas/experimental-trending-articles.d.ts
|
|
152
|
+
declare const trendingArticlesRequestSchema: z.ZodObject<{
|
|
153
|
+
articleKeys: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodString, z.ZodString], null>>;
|
|
154
|
+
articleCount: z.ZodDefault<z.ZodNumber>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
declare const trendingArticleItemSchema: z.ZodObject<{
|
|
157
|
+
title: z.ZodString;
|
|
158
|
+
url: z.ZodString;
|
|
159
|
+
source: z.ZodString;
|
|
160
|
+
pressDate: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
161
|
+
image: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
declare const trendingArticlesResponseSchema: z.ZodArray<z.ZodObject<{
|
|
164
|
+
title: z.ZodString;
|
|
165
|
+
url: z.ZodString;
|
|
166
|
+
source: z.ZodString;
|
|
167
|
+
pressDate: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
168
|
+
image: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
type TrendingArticlesRequest = z.infer<typeof trendingArticlesRequestSchema>;
|
|
171
|
+
type TrendingArticleItem = z.infer<typeof trendingArticleItemSchema>;
|
|
172
|
+
type TrendingArticlesResponse = z.infer<typeof trendingArticlesResponseSchema>;
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/schemas/experimental-trending-now.d.ts
|
|
175
|
+
declare const articleKeySchema: z.ZodTuple<[z.ZodNumber, z.ZodString, z.ZodString], null>;
|
|
176
|
+
declare const trendingNowRequestSchema: z.ZodObject<{
|
|
177
|
+
geo: z.ZodDefault<z.ZodString>;
|
|
178
|
+
language: z.ZodDefault<z.ZodString>;
|
|
179
|
+
hours: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<24>, z.ZodLiteral<48>, z.ZodLiteral<168>]>>;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
declare const trendingNowItemSchema: z.ZodObject<{
|
|
182
|
+
keyword: z.ZodString;
|
|
183
|
+
traffic: z.ZodNumber;
|
|
184
|
+
trafficGrowthRate: z.ZodNumber;
|
|
185
|
+
activeTime: z.ZodString;
|
|
186
|
+
relatedKeywords: z.ZodArray<z.ZodString>;
|
|
187
|
+
articleKeys: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodString, z.ZodString], null>>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
declare const trendingNowResponseSchema: z.ZodArray<z.ZodObject<{
|
|
190
|
+
keyword: z.ZodString;
|
|
191
|
+
traffic: z.ZodNumber;
|
|
192
|
+
trafficGrowthRate: z.ZodNumber;
|
|
193
|
+
activeTime: z.ZodString;
|
|
194
|
+
relatedKeywords: z.ZodArray<z.ZodString>;
|
|
195
|
+
articleKeys: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodString, z.ZodString], null>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
type ArticleKey = z.infer<typeof articleKeySchema>;
|
|
198
|
+
type TrendingNowRequest = z.infer<typeof trendingNowRequestSchema>;
|
|
199
|
+
type TrendingNowItem = z.infer<typeof trendingNowItemSchema>;
|
|
200
|
+
type TrendingNowResponse = z.infer<typeof trendingNowResponseSchema>;
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/schemas/explore.d.ts
|
|
203
|
+
declare const exploreRequestSchema: z.ZodObject<{
|
|
204
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
205
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
207
|
+
geo: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
208
|
+
time: z.ZodOptional<z.ZodString>;
|
|
209
|
+
category: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
property: z.ZodOptional<z.ZodEnum<{
|
|
211
|
+
"": "";
|
|
212
|
+
images: "images";
|
|
213
|
+
news: "news";
|
|
214
|
+
youtube: "youtube";
|
|
215
|
+
froogle: "froogle";
|
|
216
|
+
}>>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
declare const exploreResponseSchema: z.ZodObject<{
|
|
219
|
+
widgets: z.ZodArray<z.ZodObject<{
|
|
220
|
+
request: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
221
|
+
token: z.ZodString;
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
title: z.ZodOptional<z.ZodString>;
|
|
224
|
+
type: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$loose>>;
|
|
226
|
+
}, z.core.$loose>;
|
|
227
|
+
type ExploreRequest = z.infer<typeof exploreRequestSchema>;
|
|
228
|
+
type ExploreResponse = z.infer<typeof exploreResponseSchema>;
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/schemas/interest-by-region.d.ts
|
|
231
|
+
declare const interestByRegionRequestSchema: z.ZodObject<{
|
|
232
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
233
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
235
|
+
geo: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
236
|
+
time: z.ZodOptional<z.ZodString>;
|
|
237
|
+
category: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
property: z.ZodOptional<z.ZodEnum<{
|
|
239
|
+
"": "";
|
|
240
|
+
images: "images";
|
|
241
|
+
news: "news";
|
|
242
|
+
youtube: "youtube";
|
|
243
|
+
froogle: "froogle";
|
|
244
|
+
}>>;
|
|
245
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
246
|
+
COUNTRY: "COUNTRY";
|
|
247
|
+
REGION: "REGION";
|
|
248
|
+
CITY: "CITY";
|
|
249
|
+
DMA: "DMA";
|
|
250
|
+
}>>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
declare const geoMapDataSchema: z.ZodObject<{
|
|
253
|
+
geoCode: z.ZodOptional<z.ZodString>;
|
|
254
|
+
geoName: z.ZodString;
|
|
255
|
+
value: z.ZodArray<z.ZodNumber>;
|
|
256
|
+
formattedValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
257
|
+
hasData: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
258
|
+
maxValueIndex: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
coordinates: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
lat: z.ZodNumber;
|
|
261
|
+
lng: z.ZodNumber;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
}, z.core.$loose>;
|
|
264
|
+
declare const interestByRegionResponseSchema: z.ZodObject<{
|
|
265
|
+
default: z.ZodObject<{
|
|
266
|
+
geoMapData: z.ZodArray<z.ZodObject<{
|
|
267
|
+
geoCode: z.ZodOptional<z.ZodString>;
|
|
268
|
+
geoName: z.ZodString;
|
|
269
|
+
value: z.ZodArray<z.ZodNumber>;
|
|
270
|
+
formattedValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
271
|
+
hasData: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
272
|
+
maxValueIndex: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
coordinates: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
lat: z.ZodNumber;
|
|
275
|
+
lng: z.ZodNumber;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
|
+
}, z.core.$loose>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
}, z.core.$loose>;
|
|
280
|
+
type InterestByRegionRequest = z.infer<typeof interestByRegionRequestSchema>;
|
|
281
|
+
type GeoMapData = z.infer<typeof geoMapDataSchema>;
|
|
282
|
+
type InterestByRegionResponse = z.infer<typeof interestByRegionResponseSchema>;
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/schemas/interest-over-time.d.ts
|
|
285
|
+
declare const interestOverTimeRequestSchema: z.ZodObject<{
|
|
286
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
287
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
289
|
+
geo: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
290
|
+
time: z.ZodOptional<z.ZodString>;
|
|
291
|
+
category: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
property: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
"": "";
|
|
294
|
+
images: "images";
|
|
295
|
+
news: "news";
|
|
296
|
+
youtube: "youtube";
|
|
297
|
+
froogle: "froogle";
|
|
298
|
+
}>>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
declare const interestOverTimePointSchema: z.ZodObject<{
|
|
301
|
+
time: z.ZodString;
|
|
302
|
+
formattedTime: z.ZodOptional<z.ZodString>;
|
|
303
|
+
formattedAxisTime: z.ZodOptional<z.ZodString>;
|
|
304
|
+
value: z.ZodArray<z.ZodNumber>;
|
|
305
|
+
formattedValue: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
306
|
+
hasData: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
307
|
+
isPartial: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
308
|
+
}, z.core.$loose>;
|
|
309
|
+
declare const interestOverTimeResponseSchema: z.ZodObject<{
|
|
310
|
+
default: z.ZodObject<{
|
|
311
|
+
timelineData: z.ZodArray<z.ZodObject<{
|
|
312
|
+
time: z.ZodString;
|
|
313
|
+
formattedTime: z.ZodOptional<z.ZodString>;
|
|
314
|
+
formattedAxisTime: z.ZodOptional<z.ZodString>;
|
|
315
|
+
value: z.ZodArray<z.ZodNumber>;
|
|
316
|
+
formattedValue: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
317
|
+
hasData: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
318
|
+
isPartial: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
319
|
+
}, z.core.$loose>>;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
}, z.core.$loose>;
|
|
322
|
+
type InterestOverTimeRequest = z.infer<typeof interestOverTimeRequestSchema>;
|
|
323
|
+
type InterestOverTimePoint = z.infer<typeof interestOverTimePointSchema>;
|
|
324
|
+
type InterestOverTimeResponse = z.infer<typeof interestOverTimeResponseSchema>;
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region src/schemas/real-time-trends.d.ts
|
|
327
|
+
declare const realTimeTrendsRequestSchema: z.ZodObject<{
|
|
328
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
329
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
geo: z.ZodString;
|
|
331
|
+
category: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
332
|
+
fi: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
fs: z.ZodOptional<z.ZodNumber>;
|
|
334
|
+
ri: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
rs: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
sort: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
declare const realTimeStorySchema: z.ZodObject<{
|
|
339
|
+
id: z.ZodOptional<z.ZodString>;
|
|
340
|
+
title: z.ZodOptional<z.ZodString>;
|
|
341
|
+
entityNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
342
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
imgUrl: z.ZodOptional<z.ZodString>;
|
|
344
|
+
newsUrl: z.ZodOptional<z.ZodString>;
|
|
345
|
+
source: z.ZodOptional<z.ZodString>;
|
|
346
|
+
}, z.core.$loose>>;
|
|
347
|
+
articles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
348
|
+
title: z.ZodOptional<z.ZodString>;
|
|
349
|
+
timeAgo: z.ZodOptional<z.ZodString>;
|
|
350
|
+
source: z.ZodOptional<z.ZodString>;
|
|
351
|
+
url: z.ZodOptional<z.ZodString>;
|
|
352
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
353
|
+
}, z.core.$loose>>>;
|
|
354
|
+
}, z.core.$loose>;
|
|
355
|
+
declare const realTimeTrendsResponseSchema: z.ZodObject<{
|
|
356
|
+
storySummaries: z.ZodObject<{
|
|
357
|
+
trendingStories: z.ZodArray<z.ZodObject<{
|
|
358
|
+
id: z.ZodOptional<z.ZodString>;
|
|
359
|
+
title: z.ZodOptional<z.ZodString>;
|
|
360
|
+
entityNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
361
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
imgUrl: z.ZodOptional<z.ZodString>;
|
|
363
|
+
newsUrl: z.ZodOptional<z.ZodString>;
|
|
364
|
+
source: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.core.$loose>>;
|
|
366
|
+
articles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
367
|
+
title: z.ZodOptional<z.ZodString>;
|
|
368
|
+
timeAgo: z.ZodOptional<z.ZodString>;
|
|
369
|
+
source: z.ZodOptional<z.ZodString>;
|
|
370
|
+
url: z.ZodOptional<z.ZodString>;
|
|
371
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, z.core.$loose>>>;
|
|
373
|
+
}, z.core.$loose>>;
|
|
374
|
+
}, z.core.$loose>;
|
|
375
|
+
}, z.core.$loose>;
|
|
376
|
+
type RealTimeTrendsRequest = z.infer<typeof realTimeTrendsRequestSchema>;
|
|
377
|
+
type RealTimeStory = z.infer<typeof realTimeStorySchema>;
|
|
378
|
+
type RealTimeTrendsResponse = z.infer<typeof realTimeTrendsResponseSchema>;
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region src/schemas/related-queries.d.ts
|
|
381
|
+
declare const relatedQueriesRequestSchema: z.ZodObject<{
|
|
382
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
383
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
385
|
+
geo: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
386
|
+
time: z.ZodOptional<z.ZodString>;
|
|
387
|
+
category: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
property: z.ZodOptional<z.ZodEnum<{
|
|
389
|
+
"": "";
|
|
390
|
+
images: "images";
|
|
391
|
+
news: "news";
|
|
392
|
+
youtube: "youtube";
|
|
393
|
+
froogle: "froogle";
|
|
394
|
+
}>>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
declare const relatedQueryItemSchema: z.ZodObject<{
|
|
397
|
+
query: z.ZodString;
|
|
398
|
+
value: z.ZodNumber;
|
|
399
|
+
formattedValue: z.ZodOptional<z.ZodString>;
|
|
400
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
+
link: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, z.core.$loose>;
|
|
403
|
+
declare const relatedQueriesResponseSchema: z.ZodObject<{
|
|
404
|
+
default: z.ZodObject<{
|
|
405
|
+
rankedList: z.ZodArray<z.ZodObject<{
|
|
406
|
+
rankedKeyword: z.ZodArray<z.ZodObject<{
|
|
407
|
+
query: z.ZodString;
|
|
408
|
+
value: z.ZodNumber;
|
|
409
|
+
formattedValue: z.ZodOptional<z.ZodString>;
|
|
410
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
link: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, z.core.$loose>>;
|
|
413
|
+
}, z.core.$loose>>;
|
|
414
|
+
}, z.core.$strip>;
|
|
415
|
+
}, z.core.$loose>;
|
|
416
|
+
type RelatedQueriesRequest = z.infer<typeof relatedQueriesRequestSchema>;
|
|
417
|
+
type RelatedQueryItem = z.infer<typeof relatedQueryItemSchema>;
|
|
418
|
+
type RelatedQueriesResponse = z.infer<typeof relatedQueriesResponseSchema>;
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region src/schemas/related-topics.d.ts
|
|
421
|
+
declare const relatedTopicsRequestSchema: z.ZodObject<{
|
|
422
|
+
hl: z.ZodOptional<z.ZodString>;
|
|
423
|
+
tz: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
425
|
+
geo: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
426
|
+
time: z.ZodOptional<z.ZodString>;
|
|
427
|
+
category: z.ZodOptional<z.ZodNumber>;
|
|
428
|
+
property: z.ZodOptional<z.ZodEnum<{
|
|
429
|
+
"": "";
|
|
430
|
+
images: "images";
|
|
431
|
+
news: "news";
|
|
432
|
+
youtube: "youtube";
|
|
433
|
+
froogle: "froogle";
|
|
434
|
+
}>>;
|
|
435
|
+
}, z.core.$strip>;
|
|
436
|
+
declare const relatedTopicItemSchema: z.ZodObject<{
|
|
437
|
+
topic: z.ZodObject<{
|
|
438
|
+
mid: z.ZodString;
|
|
439
|
+
title: z.ZodString;
|
|
440
|
+
type: z.ZodString;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
443
|
+
formattedValue: z.ZodOptional<z.ZodString>;
|
|
444
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
+
link: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$loose>;
|
|
447
|
+
declare const relatedTopicsResponseSchema: z.ZodObject<{
|
|
448
|
+
default: z.ZodObject<{
|
|
449
|
+
rankedList: z.ZodArray<z.ZodObject<{
|
|
450
|
+
rankedKeyword: z.ZodArray<z.ZodObject<{
|
|
451
|
+
topic: z.ZodObject<{
|
|
452
|
+
mid: z.ZodString;
|
|
453
|
+
title: z.ZodString;
|
|
454
|
+
type: z.ZodString;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
457
|
+
formattedValue: z.ZodOptional<z.ZodString>;
|
|
458
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
+
link: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, z.core.$loose>>;
|
|
461
|
+
}, z.core.$loose>>;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
}, z.core.$loose>;
|
|
464
|
+
type RelatedTopicsRequest = z.infer<typeof relatedTopicsRequestSchema>;
|
|
465
|
+
type RelatedTopicItem = z.infer<typeof relatedTopicItemSchema>;
|
|
466
|
+
type RelatedTopicsResponse = z.infer<typeof relatedTopicsResponseSchema>;
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/schemas/index.d.ts
|
|
469
|
+
declare const schemas: {
|
|
470
|
+
z: typeof z$1;
|
|
471
|
+
autocompleteRequestSchema: z$1.ZodObject<{
|
|
472
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
473
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
474
|
+
keyword: z$1.ZodString;
|
|
475
|
+
}, z$1.core.$strip>;
|
|
476
|
+
autocompleteResponseSchema: z$1.ZodObject<{
|
|
477
|
+
default: z$1.ZodObject<{
|
|
478
|
+
topics: z$1.ZodArray<z$1.ZodObject<{
|
|
479
|
+
mid: z$1.ZodString;
|
|
480
|
+
title: z$1.ZodString;
|
|
481
|
+
type: z$1.ZodString;
|
|
482
|
+
}, z$1.core.$strip>>;
|
|
483
|
+
}, z$1.core.$strip>;
|
|
484
|
+
}, z$1.core.$loose>;
|
|
485
|
+
exploreRequestSchema: z$1.ZodObject<{
|
|
486
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
487
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
488
|
+
keywords: z$1.ZodArray<z$1.ZodString>;
|
|
489
|
+
geo: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
|
|
490
|
+
time: z$1.ZodOptional<z$1.ZodString>;
|
|
491
|
+
category: z$1.ZodOptional<z$1.ZodNumber>;
|
|
492
|
+
property: z$1.ZodOptional<z$1.ZodEnum<{
|
|
493
|
+
"": "";
|
|
494
|
+
images: "images";
|
|
495
|
+
news: "news";
|
|
496
|
+
youtube: "youtube";
|
|
497
|
+
froogle: "froogle";
|
|
498
|
+
}>>;
|
|
499
|
+
}, z$1.core.$strip>;
|
|
500
|
+
exploreResponseSchema: z$1.ZodObject<{
|
|
501
|
+
widgets: z$1.ZodArray<z$1.ZodObject<{
|
|
502
|
+
request: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
503
|
+
token: z$1.ZodString;
|
|
504
|
+
id: z$1.ZodString;
|
|
505
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
506
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
507
|
+
}, z$1.core.$loose>>;
|
|
508
|
+
}, z$1.core.$loose>;
|
|
509
|
+
interestOverTimeRequestSchema: z$1.ZodObject<{
|
|
510
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
511
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
512
|
+
keywords: z$1.ZodArray<z$1.ZodString>;
|
|
513
|
+
geo: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
|
|
514
|
+
time: z$1.ZodOptional<z$1.ZodString>;
|
|
515
|
+
category: z$1.ZodOptional<z$1.ZodNumber>;
|
|
516
|
+
property: z$1.ZodOptional<z$1.ZodEnum<{
|
|
517
|
+
"": "";
|
|
518
|
+
images: "images";
|
|
519
|
+
news: "news";
|
|
520
|
+
youtube: "youtube";
|
|
521
|
+
froogle: "froogle";
|
|
522
|
+
}>>;
|
|
523
|
+
}, z$1.core.$strip>;
|
|
524
|
+
interestOverTimeResponseSchema: z$1.ZodObject<{
|
|
525
|
+
default: z$1.ZodObject<{
|
|
526
|
+
timelineData: z$1.ZodArray<z$1.ZodObject<{
|
|
527
|
+
time: z$1.ZodString;
|
|
528
|
+
formattedTime: z$1.ZodOptional<z$1.ZodString>;
|
|
529
|
+
formattedAxisTime: z$1.ZodOptional<z$1.ZodString>;
|
|
530
|
+
value: z$1.ZodArray<z$1.ZodNumber>;
|
|
531
|
+
formattedValue: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNumber]>>>;
|
|
532
|
+
hasData: z$1.ZodOptional<z$1.ZodArray<z$1.ZodBoolean>>;
|
|
533
|
+
isPartial: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodBoolean, z$1.ZodString]>>;
|
|
534
|
+
}, z$1.core.$loose>>;
|
|
535
|
+
}, z$1.core.$strip>;
|
|
536
|
+
}, z$1.core.$loose>;
|
|
537
|
+
interestByRegionRequestSchema: z$1.ZodObject<{
|
|
538
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
539
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
540
|
+
keywords: z$1.ZodArray<z$1.ZodString>;
|
|
541
|
+
geo: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
|
|
542
|
+
time: z$1.ZodOptional<z$1.ZodString>;
|
|
543
|
+
category: z$1.ZodOptional<z$1.ZodNumber>;
|
|
544
|
+
property: z$1.ZodOptional<z$1.ZodEnum<{
|
|
545
|
+
"": "";
|
|
546
|
+
images: "images";
|
|
547
|
+
news: "news";
|
|
548
|
+
youtube: "youtube";
|
|
549
|
+
froogle: "froogle";
|
|
550
|
+
}>>;
|
|
551
|
+
resolution: z$1.ZodOptional<z$1.ZodEnum<{
|
|
552
|
+
COUNTRY: "COUNTRY";
|
|
553
|
+
REGION: "REGION";
|
|
554
|
+
CITY: "CITY";
|
|
555
|
+
DMA: "DMA";
|
|
556
|
+
}>>;
|
|
557
|
+
}, z$1.core.$strip>;
|
|
558
|
+
interestByRegionResponseSchema: z$1.ZodObject<{
|
|
559
|
+
default: z$1.ZodObject<{
|
|
560
|
+
geoMapData: z$1.ZodArray<z$1.ZodObject<{
|
|
561
|
+
geoCode: z$1.ZodOptional<z$1.ZodString>;
|
|
562
|
+
geoName: z$1.ZodString;
|
|
563
|
+
value: z$1.ZodArray<z$1.ZodNumber>;
|
|
564
|
+
formattedValue: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
565
|
+
hasData: z$1.ZodOptional<z$1.ZodArray<z$1.ZodBoolean>>;
|
|
566
|
+
maxValueIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
567
|
+
coordinates: z$1.ZodOptional<z$1.ZodObject<{
|
|
568
|
+
lat: z$1.ZodNumber;
|
|
569
|
+
lng: z$1.ZodNumber;
|
|
570
|
+
}, z$1.core.$strip>>;
|
|
571
|
+
}, z$1.core.$loose>>;
|
|
572
|
+
}, z$1.core.$strip>;
|
|
573
|
+
}, z$1.core.$loose>;
|
|
574
|
+
relatedQueriesRequestSchema: z$1.ZodObject<{
|
|
575
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
576
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
577
|
+
keywords: z$1.ZodArray<z$1.ZodString>;
|
|
578
|
+
geo: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
|
|
579
|
+
time: z$1.ZodOptional<z$1.ZodString>;
|
|
580
|
+
category: z$1.ZodOptional<z$1.ZodNumber>;
|
|
581
|
+
property: z$1.ZodOptional<z$1.ZodEnum<{
|
|
582
|
+
"": "";
|
|
583
|
+
images: "images";
|
|
584
|
+
news: "news";
|
|
585
|
+
youtube: "youtube";
|
|
586
|
+
froogle: "froogle";
|
|
587
|
+
}>>;
|
|
588
|
+
}, z$1.core.$strip>;
|
|
589
|
+
relatedQueriesResponseSchema: z$1.ZodObject<{
|
|
590
|
+
default: z$1.ZodObject<{
|
|
591
|
+
rankedList: z$1.ZodArray<z$1.ZodObject<{
|
|
592
|
+
rankedKeyword: z$1.ZodArray<z$1.ZodObject<{
|
|
593
|
+
query: z$1.ZodString;
|
|
594
|
+
value: z$1.ZodNumber;
|
|
595
|
+
formattedValue: z$1.ZodOptional<z$1.ZodString>;
|
|
596
|
+
hasData: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
597
|
+
link: z$1.ZodOptional<z$1.ZodString>;
|
|
598
|
+
}, z$1.core.$loose>>;
|
|
599
|
+
}, z$1.core.$loose>>;
|
|
600
|
+
}, z$1.core.$strip>;
|
|
601
|
+
}, z$1.core.$loose>;
|
|
602
|
+
relatedTopicsRequestSchema: z$1.ZodObject<{
|
|
603
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
604
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
605
|
+
keywords: z$1.ZodArray<z$1.ZodString>;
|
|
606
|
+
geo: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
|
|
607
|
+
time: z$1.ZodOptional<z$1.ZodString>;
|
|
608
|
+
category: z$1.ZodOptional<z$1.ZodNumber>;
|
|
609
|
+
property: z$1.ZodOptional<z$1.ZodEnum<{
|
|
610
|
+
"": "";
|
|
611
|
+
images: "images";
|
|
612
|
+
news: "news";
|
|
613
|
+
youtube: "youtube";
|
|
614
|
+
froogle: "froogle";
|
|
615
|
+
}>>;
|
|
616
|
+
}, z$1.core.$strip>;
|
|
617
|
+
relatedTopicsResponseSchema: z$1.ZodObject<{
|
|
618
|
+
default: z$1.ZodObject<{
|
|
619
|
+
rankedList: z$1.ZodArray<z$1.ZodObject<{
|
|
620
|
+
rankedKeyword: z$1.ZodArray<z$1.ZodObject<{
|
|
621
|
+
topic: z$1.ZodObject<{
|
|
622
|
+
mid: z$1.ZodString;
|
|
623
|
+
title: z$1.ZodString;
|
|
624
|
+
type: z$1.ZodString;
|
|
625
|
+
}, z$1.core.$strip>;
|
|
626
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>;
|
|
627
|
+
formattedValue: z$1.ZodOptional<z$1.ZodString>;
|
|
628
|
+
hasData: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
629
|
+
link: z$1.ZodOptional<z$1.ZodString>;
|
|
630
|
+
}, z$1.core.$loose>>;
|
|
631
|
+
}, z$1.core.$loose>>;
|
|
632
|
+
}, z$1.core.$strip>;
|
|
633
|
+
}, z$1.core.$loose>;
|
|
634
|
+
dailyTrendsRequestSchema: z$1.ZodObject<{
|
|
635
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
636
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
637
|
+
geo: z$1.ZodString;
|
|
638
|
+
category: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNumber]>>;
|
|
639
|
+
date: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodDate]>>;
|
|
640
|
+
ns: z$1.ZodOptional<z$1.ZodNumber>;
|
|
641
|
+
}, z$1.core.$strip>;
|
|
642
|
+
dailyTrendsResponseSchema: z$1.ZodObject<{
|
|
643
|
+
default: z$1.ZodObject<{
|
|
644
|
+
trendingSearchesDays: z$1.ZodArray<z$1.ZodObject<{
|
|
645
|
+
date: z$1.ZodOptional<z$1.ZodString>;
|
|
646
|
+
formattedDate: z$1.ZodOptional<z$1.ZodString>;
|
|
647
|
+
trendingSearches: z$1.ZodArray<z$1.ZodObject<{
|
|
648
|
+
title: z$1.ZodObject<{
|
|
649
|
+
query: z$1.ZodString;
|
|
650
|
+
}, z$1.core.$loose>;
|
|
651
|
+
formattedTraffic: z$1.ZodOptional<z$1.ZodString>;
|
|
652
|
+
relatedQueries: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
653
|
+
image: z$1.ZodOptional<z$1.ZodObject<{
|
|
654
|
+
newsUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
655
|
+
source: z$1.ZodOptional<z$1.ZodString>;
|
|
656
|
+
imageUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
657
|
+
}, z$1.core.$loose>>;
|
|
658
|
+
articles: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
659
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
660
|
+
timeAgo: z$1.ZodOptional<z$1.ZodString>;
|
|
661
|
+
source: z$1.ZodOptional<z$1.ZodString>;
|
|
662
|
+
url: z$1.ZodOptional<z$1.ZodString>;
|
|
663
|
+
snippet: z$1.ZodOptional<z$1.ZodString>;
|
|
664
|
+
}, z$1.core.$loose>>>;
|
|
665
|
+
}, z$1.core.$loose>>;
|
|
666
|
+
}, z$1.core.$loose>>;
|
|
667
|
+
}, z$1.core.$strip>;
|
|
668
|
+
}, z$1.core.$loose>;
|
|
669
|
+
realTimeTrendsRequestSchema: z$1.ZodObject<{
|
|
670
|
+
hl: z$1.ZodOptional<z$1.ZodString>;
|
|
671
|
+
tz: z$1.ZodOptional<z$1.ZodNumber>;
|
|
672
|
+
geo: z$1.ZodString;
|
|
673
|
+
category: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNumber]>>;
|
|
674
|
+
fi: z$1.ZodOptional<z$1.ZodNumber>;
|
|
675
|
+
fs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
676
|
+
ri: z$1.ZodOptional<z$1.ZodNumber>;
|
|
677
|
+
rs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
678
|
+
sort: z$1.ZodOptional<z$1.ZodNumber>;
|
|
679
|
+
}, z$1.core.$strip>;
|
|
680
|
+
realTimeTrendsResponseSchema: z$1.ZodObject<{
|
|
681
|
+
storySummaries: z$1.ZodObject<{
|
|
682
|
+
trendingStories: z$1.ZodArray<z$1.ZodObject<{
|
|
683
|
+
id: z$1.ZodOptional<z$1.ZodString>;
|
|
684
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
685
|
+
entityNames: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
686
|
+
image: z$1.ZodOptional<z$1.ZodObject<{
|
|
687
|
+
imgUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
688
|
+
newsUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
689
|
+
source: z$1.ZodOptional<z$1.ZodString>;
|
|
690
|
+
}, z$1.core.$loose>>;
|
|
691
|
+
articles: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
692
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
693
|
+
timeAgo: z$1.ZodOptional<z$1.ZodString>;
|
|
694
|
+
source: z$1.ZodOptional<z$1.ZodString>;
|
|
695
|
+
url: z$1.ZodOptional<z$1.ZodString>;
|
|
696
|
+
snippet: z$1.ZodOptional<z$1.ZodString>;
|
|
697
|
+
}, z$1.core.$loose>>>;
|
|
698
|
+
}, z$1.core.$loose>>;
|
|
699
|
+
}, z$1.core.$loose>;
|
|
700
|
+
}, z$1.core.$loose>;
|
|
701
|
+
trendingNowRequestSchema: z$1.ZodObject<{
|
|
702
|
+
geo: z$1.ZodDefault<z$1.ZodString>;
|
|
703
|
+
language: z$1.ZodDefault<z$1.ZodString>;
|
|
704
|
+
hours: z$1.ZodDefault<z$1.ZodUnion<readonly [z$1.ZodLiteral<4>, z$1.ZodLiteral<24>, z$1.ZodLiteral<48>, z$1.ZodLiteral<168>]>>;
|
|
705
|
+
}, z$1.core.$strip>;
|
|
706
|
+
trendingNowResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
707
|
+
keyword: z$1.ZodString;
|
|
708
|
+
traffic: z$1.ZodNumber;
|
|
709
|
+
trafficGrowthRate: z$1.ZodNumber;
|
|
710
|
+
activeTime: z$1.ZodString;
|
|
711
|
+
relatedKeywords: z$1.ZodArray<z$1.ZodString>;
|
|
712
|
+
articleKeys: z$1.ZodArray<z$1.ZodTuple<[z$1.ZodNumber, z$1.ZodString, z$1.ZodString], null>>;
|
|
713
|
+
}, z$1.core.$strip>>;
|
|
714
|
+
trendingArticlesRequestSchema: z$1.ZodObject<{
|
|
715
|
+
articleKeys: z$1.ZodArray<z$1.ZodTuple<[z$1.ZodNumber, z$1.ZodString, z$1.ZodString], null>>;
|
|
716
|
+
articleCount: z$1.ZodDefault<z$1.ZodNumber>;
|
|
717
|
+
}, z$1.core.$strip>;
|
|
718
|
+
trendingArticlesResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
719
|
+
title: z$1.ZodString;
|
|
720
|
+
url: z$1.ZodString;
|
|
721
|
+
source: z$1.ZodString;
|
|
722
|
+
pressDate: z$1.ZodOptional<z$1.ZodArray<z$1.ZodNumber>>;
|
|
723
|
+
image: z$1.ZodOptional<z$1.ZodString>;
|
|
724
|
+
}, z$1.core.$strip>>;
|
|
725
|
+
geoPickerResponseSchema: z$1.ZodObject<{
|
|
726
|
+
children: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
727
|
+
id: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNumber]>>;
|
|
728
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
729
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
730
|
+
children: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown>>;
|
|
731
|
+
}, z$1.core.$loose>>>;
|
|
732
|
+
}, z$1.core.$loose>;
|
|
733
|
+
categoryPickerResponseSchema: z$1.ZodObject<{
|
|
734
|
+
children: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
735
|
+
id: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNumber]>>;
|
|
736
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
737
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
738
|
+
children: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown>>;
|
|
739
|
+
}, z$1.core.$loose>>>;
|
|
740
|
+
}, z$1.core.$loose>;
|
|
741
|
+
resolutionSchema: z$1.ZodEnum<{
|
|
742
|
+
COUNTRY: "COUNTRY";
|
|
743
|
+
REGION: "REGION";
|
|
744
|
+
CITY: "CITY";
|
|
745
|
+
DMA: "DMA";
|
|
746
|
+
}>;
|
|
747
|
+
googlePropertySchema: z$1.ZodEnum<{
|
|
748
|
+
"": "";
|
|
749
|
+
images: "images";
|
|
750
|
+
news: "news";
|
|
751
|
+
youtube: "youtube";
|
|
752
|
+
froogle: "froogle";
|
|
753
|
+
}>;
|
|
754
|
+
topicSchema: z$1.ZodObject<{
|
|
755
|
+
mid: z$1.ZodString;
|
|
756
|
+
title: z$1.ZodString;
|
|
757
|
+
type: z$1.ZodString;
|
|
758
|
+
}, z$1.core.$strip>;
|
|
759
|
+
};
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region src/client/public-types.d.ts
|
|
762
|
+
interface RetryConfig {
|
|
763
|
+
maxRetries?: number;
|
|
764
|
+
baseDelayMs?: number;
|
|
765
|
+
maxDelayMs?: number;
|
|
766
|
+
}
|
|
767
|
+
interface RateLimitConfig {
|
|
768
|
+
maxConcurrent?: number;
|
|
769
|
+
minDelayMs?: number;
|
|
770
|
+
}
|
|
771
|
+
interface CookieStore {
|
|
772
|
+
getCookieHeader(url: string): Promise<string | undefined>;
|
|
773
|
+
setCookieHeaders(url: string, setCookieHeaders: string[]): Promise<void>;
|
|
774
|
+
}
|
|
775
|
+
interface ProxyHookInput {
|
|
776
|
+
url: string;
|
|
777
|
+
init: RequestInit;
|
|
778
|
+
}
|
|
779
|
+
interface ProxyHookOutput {
|
|
780
|
+
url?: string;
|
|
781
|
+
init?: RequestInit;
|
|
782
|
+
}
|
|
783
|
+
type ProxyHook = (input: ProxyHookInput) => ProxyHookOutput | Promise<ProxyHookOutput>;
|
|
784
|
+
interface CreateClientConfig {
|
|
785
|
+
fetch?: typeof globalThis.fetch;
|
|
786
|
+
timeoutMs?: number;
|
|
787
|
+
baseUrl?: string;
|
|
788
|
+
hl?: string;
|
|
789
|
+
tz?: number;
|
|
790
|
+
retries?: RetryConfig;
|
|
791
|
+
rateLimit?: RateLimitConfig;
|
|
792
|
+
userAgent?: string;
|
|
793
|
+
cookieStore?: CookieStore;
|
|
794
|
+
proxyHook?: ProxyHook;
|
|
795
|
+
}
|
|
796
|
+
interface EndpointDebugOptions {
|
|
797
|
+
debugRawResponse?: boolean;
|
|
798
|
+
}
|
|
799
|
+
interface EndpointOutput<TData, TRaw = unknown> {
|
|
800
|
+
data: TData;
|
|
801
|
+
raw?: TRaw;
|
|
802
|
+
}
|
|
803
|
+
interface TrendSearchClient {
|
|
804
|
+
autocomplete: (input: {
|
|
805
|
+
keyword: string;
|
|
806
|
+
hl?: string;
|
|
807
|
+
tz?: number;
|
|
808
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
809
|
+
topics: Topic[];
|
|
810
|
+
}>>;
|
|
811
|
+
explore: (input: {
|
|
812
|
+
keywords: string[];
|
|
813
|
+
geo?: string | string[];
|
|
814
|
+
time?: string;
|
|
815
|
+
category?: number;
|
|
816
|
+
property?: "" | "images" | "news" | "youtube" | "froogle";
|
|
817
|
+
hl?: string;
|
|
818
|
+
tz?: number;
|
|
819
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
820
|
+
widgets: ExploreWidget[];
|
|
821
|
+
comparisonItem: {
|
|
822
|
+
keyword: string;
|
|
823
|
+
geo?: string;
|
|
824
|
+
time: string;
|
|
825
|
+
}[];
|
|
826
|
+
}>>;
|
|
827
|
+
interestOverTime: (input: {
|
|
828
|
+
keywords: string[];
|
|
829
|
+
geo?: string | string[];
|
|
830
|
+
time?: string;
|
|
831
|
+
category?: number;
|
|
832
|
+
property?: "" | "images" | "news" | "youtube" | "froogle";
|
|
833
|
+
hl?: string;
|
|
834
|
+
tz?: number;
|
|
835
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
836
|
+
timeline: InterestOverTimePoint[];
|
|
837
|
+
}>>;
|
|
838
|
+
interestByRegion: (input: {
|
|
839
|
+
keywords: string[];
|
|
840
|
+
geo?: string | string[];
|
|
841
|
+
time?: string;
|
|
842
|
+
category?: number;
|
|
843
|
+
property?: "" | "images" | "news" | "youtube" | "froogle";
|
|
844
|
+
resolution?: "COUNTRY" | "REGION" | "CITY" | "DMA";
|
|
845
|
+
hl?: string;
|
|
846
|
+
tz?: number;
|
|
847
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
848
|
+
regions: GeoMapData[];
|
|
849
|
+
}>>;
|
|
850
|
+
relatedQueries: (input: {
|
|
851
|
+
keywords: string[];
|
|
852
|
+
geo?: string | string[];
|
|
853
|
+
time?: string;
|
|
854
|
+
category?: number;
|
|
855
|
+
property?: "" | "images" | "news" | "youtube" | "froogle";
|
|
856
|
+
hl?: string;
|
|
857
|
+
tz?: number;
|
|
858
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
859
|
+
top: RelatedQueryItem[];
|
|
860
|
+
rising: RelatedQueryItem[];
|
|
861
|
+
}>>;
|
|
862
|
+
relatedTopics: (input: {
|
|
863
|
+
keywords: string[];
|
|
864
|
+
geo?: string | string[];
|
|
865
|
+
time?: string;
|
|
866
|
+
category?: number;
|
|
867
|
+
property?: "" | "images" | "news" | "youtube" | "froogle";
|
|
868
|
+
hl?: string;
|
|
869
|
+
tz?: number;
|
|
870
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
871
|
+
top: RelatedTopicItem[];
|
|
872
|
+
rising: RelatedTopicItem[];
|
|
873
|
+
}>>;
|
|
874
|
+
dailyTrends: (input: {
|
|
875
|
+
geo: string;
|
|
876
|
+
category?: string | number;
|
|
877
|
+
date?: string | Date;
|
|
878
|
+
ns?: number;
|
|
879
|
+
hl?: string;
|
|
880
|
+
tz?: number;
|
|
881
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
882
|
+
days: DailyTrendsResponse["default"]["trendingSearchesDays"];
|
|
883
|
+
trends: DailyTrendsResponse["default"]["trendingSearchesDays"][number]["trendingSearches"];
|
|
884
|
+
}>>;
|
|
885
|
+
realTimeTrends: (input: {
|
|
886
|
+
geo: string;
|
|
887
|
+
category?: string | number;
|
|
888
|
+
fi?: number;
|
|
889
|
+
fs?: number;
|
|
890
|
+
ri?: number;
|
|
891
|
+
rs?: number;
|
|
892
|
+
sort?: number;
|
|
893
|
+
hl?: string;
|
|
894
|
+
tz?: number;
|
|
895
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
896
|
+
stories: Record<string, unknown>[];
|
|
897
|
+
}>>;
|
|
898
|
+
trendingNow: (input: {
|
|
899
|
+
geo?: string;
|
|
900
|
+
language?: string;
|
|
901
|
+
hours?: 4 | 24 | 48 | 168;
|
|
902
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
903
|
+
items: TrendingNowItem[];
|
|
904
|
+
}>>;
|
|
905
|
+
trendingArticles: (input: {
|
|
906
|
+
articleKeys: [number, string, string][];
|
|
907
|
+
articleCount?: number;
|
|
908
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
909
|
+
articles: TrendingArticleItem[];
|
|
910
|
+
}>>;
|
|
911
|
+
experimental: {
|
|
912
|
+
trendingNow: (input: {
|
|
913
|
+
geo?: string;
|
|
914
|
+
language?: string;
|
|
915
|
+
hours?: 4 | 24 | 48 | 168;
|
|
916
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
917
|
+
items: TrendingNowItem[];
|
|
918
|
+
}>>;
|
|
919
|
+
trendingArticles: (input: {
|
|
920
|
+
articleKeys: [number, string, string][];
|
|
921
|
+
articleCount?: number;
|
|
922
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
923
|
+
articles: TrendingArticleItem[];
|
|
924
|
+
}>>;
|
|
925
|
+
geoPicker: (input?: {
|
|
926
|
+
hl?: string;
|
|
927
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
928
|
+
items: GeoPickerResponse;
|
|
929
|
+
}>>;
|
|
930
|
+
categoryPicker: (input?: {
|
|
931
|
+
hl?: string;
|
|
932
|
+
}, options?: EndpointDebugOptions) => Promise<EndpointOutput<{
|
|
933
|
+
items: CategoryPickerResponse;
|
|
934
|
+
}>>;
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
//#endregion
|
|
938
|
+
export { TrendingArticlesResponse as A, ExploreWidget as B, ExploreResponse as C, TrendingNowResponse as D, TrendingNowRequest as E, PickerNode as F, AutocompleteResponse as G, Resolution as H, DailyTrendArticle as I, DailyTrendItem as L, CategoryPickerResponse as M, GeoPickerRequest as N, TrendingArticleItem as O, GeoPickerResponse as P, DailyTrendsRequest as R, ExploreRequest as S, TrendingNowItem as T, Topic as U, GoogleProperty as V, AutocompleteRequest as W, InterestOverTimeRequest as _, TrendSearchClient as a, InterestByRegionRequest as b, RelatedTopicsRequest as c, RelatedQueriesResponse as d, RelatedQueryItem as f, InterestOverTimePoint as g, RealTimeTrendsResponse as h, EndpointOutput as i, CategoryPickerRequest as j, TrendingArticlesRequest as k, RelatedTopicsResponse as l, RealTimeTrendsRequest as m, CreateClientConfig as n, schemas as o, RealTimeStory as p, EndpointDebugOptions as r, RelatedTopicItem as s, CookieStore as t, RelatedQueriesRequest as u, InterestOverTimeResponse as v, ArticleKey as w, InterestByRegionResponse as x, GeoMapData as y, DailyTrendsResponse as z };
|