@keystrokehq/search_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-account-info.cjs +11 -11
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +21 -3
- package/dist/actions/get-account-info.d.cts.map +1 -1
- package/dist/actions/get-account-info.d.mts +21 -3
- package/dist/actions/get-account-info.d.mts.map +1 -1
- package/dist/actions/get-account-info.mjs +11 -11
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-cached-search-by-id.cjs +16 -16
- package/dist/actions/get-cached-search-by-id.cjs.map +1 -1
- package/dist/actions/get-cached-search-by-id.d.cts +117 -3
- package/dist/actions/get-cached-search-by-id.d.cts.map +1 -1
- package/dist/actions/get-cached-search-by-id.d.mts +117 -3
- package/dist/actions/get-cached-search-by-id.d.mts.map +1 -1
- package/dist/actions/get-cached-search-by-id.mjs +16 -16
- package/dist/actions/get-cached-search-by-id.mjs.map +1 -1
- package/dist/actions/get-cached-search-html-by-id.cjs +3 -3
- package/dist/actions/get-cached-search-html-by-id.cjs.map +1 -1
- package/dist/actions/get-cached-search-html-by-id.d.cts +10 -3
- package/dist/actions/get-cached-search-html-by-id.d.cts.map +1 -1
- package/dist/actions/get-cached-search-html-by-id.d.mts +10 -3
- package/dist/actions/get-cached-search-html-by-id.d.mts.map +1 -1
- package/dist/actions/get-cached-search-html-by-id.mjs +3 -3
- package/dist/actions/get-cached-search-html-by-id.mjs.map +1 -1
- package/dist/actions/get-locations.cjs +2 -2
- package/dist/actions/get-locations.cjs.map +1 -1
- package/dist/actions/get-locations.d.cts +23 -3
- package/dist/actions/get-locations.d.cts.map +1 -1
- package/dist/actions/get-locations.d.mts +23 -3
- package/dist/actions/get-locations.d.mts.map +1 -1
- package/dist/actions/get-locations.mjs +2 -2
- package/dist/actions/get-locations.mjs.map +1 -1
- package/dist/actions/search.cjs +27 -27
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +182 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +182 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +27 -27
- package/dist/actions/search.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
|
@@ -1,9 +1,123 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-cached-search-by-id.d.ts
|
|
4
|
-
declare const SearchApiGetCachedSearchByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SearchApiGetCachedSearchByIdInput: z.ZodObject<{
|
|
5
|
+
search_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SearchApiGetCachedSearchByIdOutput: z.ZodObject<{
|
|
8
|
+
ads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
|
+
jobs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
answer_box: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
shopping_ads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
30
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
reviews: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
merchant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
}, z.core.$loose>>>>;
|
|
38
|
+
inline_images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
inline_videos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
45
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
}, z.core.$loose>>>>;
|
|
51
|
+
local_results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
52
|
+
hours: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
reviews: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
}, z.core.$loose>>>>;
|
|
60
|
+
knowledge_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
61
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
65
|
+
reviews: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
}, z.core.$loose>>>;
|
|
68
|
+
organic_results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
69
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
sitelinks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
75
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
}, z.core.$loose>>>>;
|
|
78
|
+
}, z.core.$loose>>>>;
|
|
79
|
+
search_metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
html_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
json_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
request_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
total_time_taken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
87
|
+
parsing_time_taken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
88
|
+
request_time_taken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
89
|
+
}, z.core.$loose>>>;
|
|
90
|
+
related_searches: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
91
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
}, z.core.$loose>>>>;
|
|
94
|
+
search_parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
|
+
q: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
gl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
hl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
engine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
google_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
location_used: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
}, z.core.$loose>>>;
|
|
104
|
+
search_information: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
105
|
+
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
106
|
+
query_displayed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
detected_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
time_taken_displayed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
+
}, z.core.$loose>>>;
|
|
110
|
+
discussions_and_forums: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
111
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
116
|
+
}, z.core.$loose>>>>;
|
|
117
|
+
}, z.core.$loose>;
|
|
118
|
+
declare const searchApiGetCachedSearchById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
119
|
+
search_id: string;
|
|
120
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
121
|
//#endregion
|
|
8
122
|
export { searchApiGetCachedSearchById };
|
|
9
123
|
//# sourceMappingURL=get-cached-search-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cached-search-by-id.d.mts","names":[],"sources":["../../src/actions/get-cached-search-by-id.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"get-cached-search-by-id.d.mts","names":[],"sources":["../../src/actions/get-cached-search-by-id.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAiHjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiBlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -8,21 +8,21 @@ const SearchApiGetCachedSearchById_AdSchema = z.object({
|
|
|
8
8
|
title: z.string().describe("Ad title").nullable().optional(),
|
|
9
9
|
position: z.number().int().describe("Ad position").nullable().optional(),
|
|
10
10
|
description: z.string().describe("Ad description").nullable().optional()
|
|
11
|
-
}).describe("Paid search advertisement.");
|
|
11
|
+
}).passthrough().describe("Paid search advertisement.");
|
|
12
12
|
const SearchApiGetCachedSearchById_JobSchema = z.object({
|
|
13
13
|
title: z.string().describe("Job title").nullable().optional(),
|
|
14
14
|
company: z.string().describe("Company name").nullable().optional(),
|
|
15
15
|
location: z.string().describe("Job location").nullable().optional(),
|
|
16
16
|
position: z.number().int().describe("Result position").nullable().optional(),
|
|
17
17
|
description: z.string().describe("Job description").nullable().optional()
|
|
18
|
-
}).describe("Job posting result.");
|
|
18
|
+
}).passthrough().describe("Job posting result.");
|
|
19
19
|
const SearchApiGetCachedSearchById_AnswerBoxSchema = z.object({
|
|
20
20
|
link: z.string().describe("Source link").nullable().optional(),
|
|
21
21
|
type: z.string().describe("Answer box type").nullable().optional(),
|
|
22
22
|
title: z.string().describe("Answer title").nullable().optional(),
|
|
23
23
|
answer: z.string().describe("Answer content").nullable().optional(),
|
|
24
24
|
snippet: z.string().describe("Answer snippet").nullable().optional()
|
|
25
|
-
}).describe("Instant answer data for specific query types.");
|
|
25
|
+
}).passthrough().describe("Instant answer data for specific query types.");
|
|
26
26
|
const SearchApiGetCachedSearchById_ShoppingAdSchema = z.object({
|
|
27
27
|
link: z.string().describe("Product URL").nullable().optional(),
|
|
28
28
|
price: z.string().describe("Product price").nullable().optional(),
|
|
@@ -31,20 +31,20 @@ const SearchApiGetCachedSearchById_ShoppingAdSchema = z.object({
|
|
|
31
31
|
reviews: z.number().int().describe("Number of reviews").nullable().optional(),
|
|
32
32
|
merchant: z.string().describe("Merchant name").nullable().optional(),
|
|
33
33
|
position: z.number().int().describe("Ad position").nullable().optional()
|
|
34
|
-
}).describe("Product listing advertisement.");
|
|
34
|
+
}).passthrough().describe("Product listing advertisement.");
|
|
35
35
|
const SearchApiGetCachedSearchById_InlineImageSchema = z.object({
|
|
36
36
|
link: z.string().describe("Image source URL").nullable().optional(),
|
|
37
37
|
title: z.string().describe("Image title").nullable().optional(),
|
|
38
38
|
position: z.number().int().describe("Image position").nullable().optional(),
|
|
39
39
|
thumbnail: z.string().describe("Image thumbnail URL").nullable().optional()
|
|
40
|
-
}).describe("Inline image result.");
|
|
40
|
+
}).passthrough().describe("Inline image result.");
|
|
41
41
|
const SearchApiGetCachedSearchById_InlineVideoSchema = z.object({
|
|
42
42
|
link: z.string().describe("Video URL").nullable().optional(),
|
|
43
43
|
title: z.string().describe("Video title").nullable().optional(),
|
|
44
44
|
duration: z.string().describe("Video duration").nullable().optional(),
|
|
45
45
|
position: z.number().int().describe("Video position").nullable().optional(),
|
|
46
46
|
thumbnail: z.string().describe("Video thumbnail URL").nullable().optional()
|
|
47
|
-
}).describe("Embedded video result.");
|
|
47
|
+
}).passthrough().describe("Embedded video result.");
|
|
48
48
|
const SearchApiGetCachedSearchById_LocalResultSchema = z.object({
|
|
49
49
|
hours: z.string().describe("Business hours").nullable().optional(),
|
|
50
50
|
phone: z.string().describe("Phone number").nullable().optional(),
|
|
@@ -53,7 +53,7 @@ const SearchApiGetCachedSearchById_LocalResultSchema = z.object({
|
|
|
53
53
|
address: z.string().describe("Business address").nullable().optional(),
|
|
54
54
|
reviews: z.number().int().describe("Number of reviews").nullable().optional(),
|
|
55
55
|
position: z.number().int().describe("Result position").nullable().optional()
|
|
56
|
-
}).describe("Local business listing result.");
|
|
56
|
+
}).passthrough().describe("Local business listing result.");
|
|
57
57
|
const SearchApiGetCachedSearchById_KnowledgeGraphSchema = z.object({
|
|
58
58
|
type: z.string().describe("Entity type").nullable().optional(),
|
|
59
59
|
image: z.string().describe("Entity image URL").nullable().optional(),
|
|
@@ -61,11 +61,11 @@ const SearchApiGetCachedSearchById_KnowledgeGraphSchema = z.object({
|
|
|
61
61
|
rating: z.number().describe("Entity rating").nullable().optional(),
|
|
62
62
|
reviews: z.number().int().describe("Number of reviews").nullable().optional(),
|
|
63
63
|
description: z.string().describe("Entity description").nullable().optional()
|
|
64
|
-
}).describe("Entity data from knowledge graph.");
|
|
64
|
+
}).passthrough().describe("Entity data from knowledge graph.");
|
|
65
65
|
const SearchApiGetCachedSearchById_SitelinkSchema = z.object({
|
|
66
66
|
link: z.string().describe("Sitelink URL").nullable().optional(),
|
|
67
67
|
title: z.string().describe("Sitelink title").nullable().optional()
|
|
68
|
-
}).describe("Additional page links for a search result.");
|
|
68
|
+
}).passthrough().describe("Additional page links for a search result.");
|
|
69
69
|
const SearchApiGetCachedSearchById_OrganicResultSchema = z.object({
|
|
70
70
|
date: z.string().describe("Publication or last updated date").nullable().optional(),
|
|
71
71
|
link: z.string().describe("Result URL").nullable().optional(),
|
|
@@ -73,7 +73,7 @@ const SearchApiGetCachedSearchById_OrganicResultSchema = z.object({
|
|
|
73
73
|
snippet: z.string().describe("Result description").nullable().optional(),
|
|
74
74
|
position: z.number().int().describe("Result ranking").nullable().optional(),
|
|
75
75
|
sitelinks: z.array(SearchApiGetCachedSearchById_SitelinkSchema).describe("Additional page links").nullable().optional()
|
|
76
|
-
}).describe("Individual organic search result.");
|
|
76
|
+
}).passthrough().describe("Individual organic search result.");
|
|
77
77
|
const SearchApiGetCachedSearchById_SearchMetadataSchema = z.object({
|
|
78
78
|
id: z.string().describe("Unique search identifier").nullable().optional(),
|
|
79
79
|
status: z.string().describe("Request completion status (e.g., 'Success')").nullable().optional(),
|
|
@@ -84,11 +84,11 @@ const SearchApiGetCachedSearchById_SearchMetadataSchema = z.object({
|
|
|
84
84
|
total_time_taken: z.number().describe("Combined processing time").nullable().optional(),
|
|
85
85
|
parsing_time_taken: z.number().describe("Duration for response parsing").nullable().optional(),
|
|
86
86
|
request_time_taken: z.number().describe("Duration in seconds for data retrieval").nullable().optional()
|
|
87
|
-
}).describe("Metadata about the cached search request.");
|
|
87
|
+
}).passthrough().describe("Metadata about the cached search request.");
|
|
88
88
|
const SearchApiGetCachedSearchById_RelatedSearchSchema = z.object({
|
|
89
89
|
link: z.string().describe("Search URL for suggestion").nullable().optional(),
|
|
90
90
|
query: z.string().describe("Suggested query").nullable().optional()
|
|
91
|
-
}).describe("Related search suggestion.");
|
|
91
|
+
}).passthrough().describe("Related search suggestion.");
|
|
92
92
|
const SearchApiGetCachedSearchById_SearchParametersSchema = z.object({
|
|
93
93
|
q: z.string().describe("Search query").nullable().optional(),
|
|
94
94
|
gl: z.string().describe("Country setting").nullable().optional(),
|
|
@@ -98,20 +98,20 @@ const SearchApiGetCachedSearchById_SearchParametersSchema = z.object({
|
|
|
98
98
|
location: z.string().describe("Geographic location used").nullable().optional(),
|
|
99
99
|
google_domain: z.string().describe("Google domain used").nullable().optional(),
|
|
100
100
|
location_used: z.string().describe("Resolved location").nullable().optional()
|
|
101
|
-
}).describe("Original query parameters from the search request.");
|
|
101
|
+
}).passthrough().describe("Original query parameters from the search request.");
|
|
102
102
|
const SearchApiGetCachedSearchById_SearchInformationSchema = z.object({
|
|
103
103
|
total_results: z.number().int().describe("Approximate result count").nullable().optional(),
|
|
104
104
|
query_displayed: z.string().describe("User-facing query text").nullable().optional(),
|
|
105
105
|
detected_location: z.string().describe("Inferred user location").nullable().optional(),
|
|
106
106
|
time_taken_displayed: z.number().describe("Google's reported search time").nullable().optional()
|
|
107
|
-
}).describe("Information about the search results.");
|
|
107
|
+
}).passthrough().describe("Information about the search results.");
|
|
108
108
|
const SearchApiGetCachedSearchById_DiscussionForumSchema = z.object({
|
|
109
109
|
link: z.string().describe("Discussion URL").nullable().optional(),
|
|
110
110
|
title: z.string().describe("Discussion title").nullable().optional(),
|
|
111
111
|
source: z.string().describe("Forum source (e.g., Reddit)").nullable().optional(),
|
|
112
112
|
snippet: z.string().describe("Discussion snippet").nullable().optional(),
|
|
113
113
|
position: z.number().int().describe("Result position").nullable().optional()
|
|
114
|
-
}).describe("Community discussion or forum result.");
|
|
114
|
+
}).passthrough().describe("Community discussion or forum result.");
|
|
115
115
|
const searchApiGetCachedSearchById = action("SEARCH_API_GET_CACHED_SEARCH_BY_ID", {
|
|
116
116
|
slug: "search_api-get-cached-search-by-id",
|
|
117
117
|
name: "Get Cached Search by ID",
|
|
@@ -132,7 +132,7 @@ const searchApiGetCachedSearchById = action("SEARCH_API_GET_CACHED_SEARCH_BY_ID"
|
|
|
132
132
|
search_parameters: SearchApiGetCachedSearchById_SearchParametersSchema.nullable().optional(),
|
|
133
133
|
search_information: SearchApiGetCachedSearchById_SearchInformationSchema.nullable().optional(),
|
|
134
134
|
discussions_and_forums: z.array(SearchApiGetCachedSearchById_DiscussionForumSchema).describe("Community content from Reddit and similar platforms").nullable().optional()
|
|
135
|
-
}).describe("Response model containing the complete cached search results in JSON format.")
|
|
135
|
+
}).passthrough().describe("Response model containing the complete cached search results in JSON format.")
|
|
136
136
|
});
|
|
137
137
|
//#endregion
|
|
138
138
|
export { searchApiGetCachedSearchById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cached-search-by-id.mjs","names":[],"sources":["../../src/actions/get-cached-search-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetCachedSearchByIdInput: z.ZodTypeAny = z.object({\n search_id: z.string().describe(\"The unique identifier for a previously executed search, formatted as 'search_[alphanumeric]'. This ID is found in the 'id' or 'json_url' field of the search_metadata from initial search responses.\"),\n}).describe(\"Request model for retrieving cached search results in JSON format.\");\nconst SearchApiGetCachedSearchById_AdSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Ad URL\").nullable().optional(),\n price: z.string().describe(\"Advertised price\").nullable().optional(),\n title: z.string().describe(\"Ad title\").nullable().optional(),\n position: z.number().int().describe(\"Ad position\").nullable().optional(),\n description: z.string().describe(\"Ad description\").nullable().optional(),\n}).describe(\"Paid search advertisement.\");\nconst SearchApiGetCachedSearchById_JobSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Job title\").nullable().optional(),\n company: z.string().describe(\"Company name\").nullable().optional(),\n location: z.string().describe(\"Job location\").nullable().optional(),\n position: z.number().int().describe(\"Result position\").nullable().optional(),\n description: z.string().describe(\"Job description\").nullable().optional(),\n}).describe(\"Job posting result.\");\nconst SearchApiGetCachedSearchById_AnswerBoxSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Source link\").nullable().optional(),\n type: z.string().describe(\"Answer box type\").nullable().optional(),\n title: z.string().describe(\"Answer title\").nullable().optional(),\n answer: z.string().describe(\"Answer content\").nullable().optional(),\n snippet: z.string().describe(\"Answer snippet\").nullable().optional(),\n}).describe(\"Instant answer data for specific query types.\");\nconst SearchApiGetCachedSearchById_ShoppingAdSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Product URL\").nullable().optional(),\n price: z.string().describe(\"Product price\").nullable().optional(),\n title: z.string().describe(\"Product title\").nullable().optional(),\n rating: z.number().describe(\"Product rating\").nullable().optional(),\n reviews: z.number().int().describe(\"Number of reviews\").nullable().optional(),\n merchant: z.string().describe(\"Merchant name\").nullable().optional(),\n position: z.number().int().describe(\"Ad position\").nullable().optional(),\n}).describe(\"Product listing advertisement.\");\nconst SearchApiGetCachedSearchById_InlineImageSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Image source URL\").nullable().optional(),\n title: z.string().describe(\"Image title\").nullable().optional(),\n position: z.number().int().describe(\"Image position\").nullable().optional(),\n thumbnail: z.string().describe(\"Image thumbnail URL\").nullable().optional(),\n}).describe(\"Inline image result.\");\nconst SearchApiGetCachedSearchById_InlineVideoSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Video URL\").nullable().optional(),\n title: z.string().describe(\"Video title\").nullable().optional(),\n duration: z.string().describe(\"Video duration\").nullable().optional(),\n position: z.number().int().describe(\"Video position\").nullable().optional(),\n thumbnail: z.string().describe(\"Video thumbnail URL\").nullable().optional(),\n}).describe(\"Embedded video result.\");\nconst SearchApiGetCachedSearchById_LocalResultSchema: z.ZodTypeAny = z.object({\n hours: z.string().describe(\"Business hours\").nullable().optional(),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n title: z.string().describe(\"Business name\").nullable().optional(),\n rating: z.number().describe(\"Business rating\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n reviews: z.number().int().describe(\"Number of reviews\").nullable().optional(),\n position: z.number().int().describe(\"Result position\").nullable().optional(),\n}).describe(\"Local business listing result.\");\nconst SearchApiGetCachedSearchById_KnowledgeGraphSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Entity type\").nullable().optional(),\n image: z.string().describe(\"Entity image URL\").nullable().optional(),\n title: z.string().describe(\"Entity title\").nullable().optional(),\n rating: z.number().describe(\"Entity rating\").nullable().optional(),\n reviews: z.number().int().describe(\"Number of reviews\").nullable().optional(),\n description: z.string().describe(\"Entity description\").nullable().optional(),\n}).describe(\"Entity data from knowledge graph.\");\nconst SearchApiGetCachedSearchById_SitelinkSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Sitelink URL\").nullable().optional(),\n title: z.string().describe(\"Sitelink title\").nullable().optional(),\n}).describe(\"Additional page links for a search result.\");\nconst SearchApiGetCachedSearchById_OrganicResultSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Publication or last updated date\").nullable().optional(),\n link: z.string().describe(\"Result URL\").nullable().optional(),\n title: z.string().describe(\"Result title\").nullable().optional(),\n snippet: z.string().describe(\"Result description\").nullable().optional(),\n position: z.number().int().describe(\"Result ranking\").nullable().optional(),\n sitelinks: z.array(SearchApiGetCachedSearchById_SitelinkSchema).describe(\"Additional page links\").nullable().optional(),\n}).describe(\"Individual organic search result.\");\nconst SearchApiGetCachedSearchById_SearchMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique search identifier\").nullable().optional(),\n status: z.string().describe(\"Request completion status (e.g., 'Success')\").nullable().optional(),\n html_url: z.string().describe(\"Link to cached HTML response\").nullable().optional(),\n json_url: z.string().describe(\"Link to JSON response\").nullable().optional(),\n created_at: z.string().describe(\"ISO timestamp of when the search was created\").nullable().optional(),\n request_url: z.string().describe(\"Actual Google URL queried\").nullable().optional(),\n total_time_taken: z.number().describe(\"Combined processing time\").nullable().optional(),\n parsing_time_taken: z.number().describe(\"Duration for response parsing\").nullable().optional(),\n request_time_taken: z.number().describe(\"Duration in seconds for data retrieval\").nullable().optional(),\n}).describe(\"Metadata about the cached search request.\");\nconst SearchApiGetCachedSearchById_RelatedSearchSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Search URL for suggestion\").nullable().optional(),\n query: z.string().describe(\"Suggested query\").nullable().optional(),\n}).describe(\"Related search suggestion.\");\nconst SearchApiGetCachedSearchById_SearchParametersSchema: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Search query\").nullable().optional(),\n gl: z.string().describe(\"Country setting\").nullable().optional(),\n hl: z.string().describe(\"Language setting\").nullable().optional(),\n device: z.string().describe(\"Device type (desktop/mobile/tablet)\").nullable().optional(),\n engine: z.string().describe(\"Search engine type used\").nullable().optional(),\n location: z.string().describe(\"Geographic location used\").nullable().optional(),\n google_domain: z.string().describe(\"Google domain used\").nullable().optional(),\n location_used: z.string().describe(\"Resolved location\").nullable().optional(),\n}).describe(\"Original query parameters from the search request.\");\nconst SearchApiGetCachedSearchById_SearchInformationSchema: z.ZodTypeAny = z.object({\n total_results: z.number().int().describe(\"Approximate result count\").nullable().optional(),\n query_displayed: z.string().describe(\"User-facing query text\").nullable().optional(),\n detected_location: z.string().describe(\"Inferred user location\").nullable().optional(),\n time_taken_displayed: z.number().describe(\"Google's reported search time\").nullable().optional(),\n}).describe(\"Information about the search results.\");\nconst SearchApiGetCachedSearchById_DiscussionForumSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Discussion URL\").nullable().optional(),\n title: z.string().describe(\"Discussion title\").nullable().optional(),\n source: z.string().describe(\"Forum source (e.g., Reddit)\").nullable().optional(),\n snippet: z.string().describe(\"Discussion snippet\").nullable().optional(),\n position: z.number().int().describe(\"Result position\").nullable().optional(),\n}).describe(\"Community discussion or forum result.\");\nexport const SearchApiGetCachedSearchByIdOutput: z.ZodTypeAny = z.object({\n ads: z.array(SearchApiGetCachedSearchById_AdSchema).describe(\"Paid search advertisements with pricing and sitelinks\").nullable().optional(),\n jobs: z.array(SearchApiGetCachedSearchById_JobSchema).describe(\"Job postings with company, location, and qualifications\").nullable().optional(),\n answer_box: SearchApiGetCachedSearchById_AnswerBoxSchema.nullable().optional(),\n shopping_ads: z.array(SearchApiGetCachedSearchById_ShoppingAdSchema).describe(\"Product listings with prices and merchant ratings\").nullable().optional(),\n inline_images: z.array(SearchApiGetCachedSearchById_InlineImageSchema).describe(\"Image suggestions and galleries\").nullable().optional(),\n inline_videos: z.array(SearchApiGetCachedSearchById_InlineVideoSchema).describe(\"Embedded video results with timestamps\").nullable().optional(),\n local_results: z.array(SearchApiGetCachedSearchById_LocalResultSchema).describe(\"Business listings with ratings, hours, and map data\").nullable().optional(),\n knowledge_graph: SearchApiGetCachedSearchById_KnowledgeGraphSchema.nullable().optional(),\n organic_results: z.array(SearchApiGetCachedSearchById_OrganicResultSchema).describe(\"Array of web results\").nullable().optional(),\n search_metadata: SearchApiGetCachedSearchById_SearchMetadataSchema.nullable().optional(),\n related_searches: z.array(SearchApiGetCachedSearchById_RelatedSearchSchema).describe(\"Suggested query refinements\").nullable().optional(),\n search_parameters: SearchApiGetCachedSearchById_SearchParametersSchema.nullable().optional(),\n search_information: SearchApiGetCachedSearchById_SearchInformationSchema.nullable().optional(),\n discussions_and_forums: z.array(SearchApiGetCachedSearchById_DiscussionForumSchema).describe(\"Community content from Reddit and similar platforms\").nullable().optional(),\n}).describe(\"Response model containing the complete cached search results in JSON format.\");\n\nexport const searchApiGetCachedSearchById = action(\"SEARCH_API_GET_CACHED_SEARCH_BY_ID\", {\n slug: \"search_api-get-cached-search-by-id\",\n name: \"Get Cached Search by ID\",\n description: \"Tool to retrieve cached search results by search ID in JSON format. Use when you need to access previously executed search results without re-running the query. The search ID is found in the search_metadata.id or search_metadata.json_url field from initial search responses. Cached results are available for 90 days.\",\n input: SearchApiGetCachedSearchByIdInput,\n output: SearchApiGetCachedSearchByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACvO,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,wCAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,S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AAkD,SAAS,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,iBAAiB,kDAAkD,SAAS,CAAC,CAAC,SAAS;EACvF,kBAAkB,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,mBAAmB,oDAAoD,SAAS,CAAC,CAAC,SAAS;EAC3F,oBAAoB,qDAAqD,SAAS,CAAC,CAAC,SAAS;EAC7F,wBAAwB,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,CAAC,CAAC,CAAC,SAAS,8EAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-cached-search-by-id.mjs","names":[],"sources":["../../src/actions/get-cached-search-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetCachedSearchByIdInput = z.object({\n search_id: z.string().describe(\"The unique identifier for a previously executed search, formatted as 'search_[alphanumeric]'. This ID is found in the 'id' or 'json_url' field of the search_metadata from initial search responses.\"),\n}).describe(\"Request model for retrieving cached search results in JSON format.\");\nconst SearchApiGetCachedSearchById_AdSchema = z.object({\n link: z.string().describe(\"Ad URL\").nullable().optional(),\n price: z.string().describe(\"Advertised price\").nullable().optional(),\n title: z.string().describe(\"Ad title\").nullable().optional(),\n position: z.number().int().describe(\"Ad position\").nullable().optional(),\n description: z.string().describe(\"Ad description\").nullable().optional(),\n}).passthrough().describe(\"Paid search advertisement.\");\nconst SearchApiGetCachedSearchById_JobSchema = z.object({\n title: z.string().describe(\"Job title\").nullable().optional(),\n company: z.string().describe(\"Company name\").nullable().optional(),\n location: z.string().describe(\"Job location\").nullable().optional(),\n position: z.number().int().describe(\"Result position\").nullable().optional(),\n description: z.string().describe(\"Job description\").nullable().optional(),\n}).passthrough().describe(\"Job posting result.\");\nconst SearchApiGetCachedSearchById_AnswerBoxSchema = z.object({\n link: z.string().describe(\"Source link\").nullable().optional(),\n type: z.string().describe(\"Answer box type\").nullable().optional(),\n title: z.string().describe(\"Answer title\").nullable().optional(),\n answer: z.string().describe(\"Answer content\").nullable().optional(),\n snippet: z.string().describe(\"Answer snippet\").nullable().optional(),\n}).passthrough().describe(\"Instant answer data for specific query types.\");\nconst SearchApiGetCachedSearchById_ShoppingAdSchema = z.object({\n link: z.string().describe(\"Product URL\").nullable().optional(),\n price: z.string().describe(\"Product price\").nullable().optional(),\n title: z.string().describe(\"Product title\").nullable().optional(),\n rating: z.number().describe(\"Product rating\").nullable().optional(),\n reviews: z.number().int().describe(\"Number of reviews\").nullable().optional(),\n merchant: z.string().describe(\"Merchant name\").nullable().optional(),\n position: z.number().int().describe(\"Ad position\").nullable().optional(),\n}).passthrough().describe(\"Product listing advertisement.\");\nconst SearchApiGetCachedSearchById_InlineImageSchema = z.object({\n link: z.string().describe(\"Image source URL\").nullable().optional(),\n title: z.string().describe(\"Image title\").nullable().optional(),\n position: z.number().int().describe(\"Image position\").nullable().optional(),\n thumbnail: z.string().describe(\"Image thumbnail URL\").nullable().optional(),\n}).passthrough().describe(\"Inline image result.\");\nconst SearchApiGetCachedSearchById_InlineVideoSchema = z.object({\n link: z.string().describe(\"Video URL\").nullable().optional(),\n title: z.string().describe(\"Video title\").nullable().optional(),\n duration: z.string().describe(\"Video duration\").nullable().optional(),\n position: z.number().int().describe(\"Video position\").nullable().optional(),\n thumbnail: z.string().describe(\"Video thumbnail URL\").nullable().optional(),\n}).passthrough().describe(\"Embedded video result.\");\nconst SearchApiGetCachedSearchById_LocalResultSchema = z.object({\n hours: z.string().describe(\"Business hours\").nullable().optional(),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n title: z.string().describe(\"Business name\").nullable().optional(),\n rating: z.number().describe(\"Business rating\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n reviews: z.number().int().describe(\"Number of reviews\").nullable().optional(),\n position: z.number().int().describe(\"Result position\").nullable().optional(),\n}).passthrough().describe(\"Local business listing result.\");\nconst SearchApiGetCachedSearchById_KnowledgeGraphSchema = z.object({\n type: z.string().describe(\"Entity type\").nullable().optional(),\n image: z.string().describe(\"Entity image URL\").nullable().optional(),\n title: z.string().describe(\"Entity title\").nullable().optional(),\n rating: z.number().describe(\"Entity rating\").nullable().optional(),\n reviews: z.number().int().describe(\"Number of reviews\").nullable().optional(),\n description: z.string().describe(\"Entity description\").nullable().optional(),\n}).passthrough().describe(\"Entity data from knowledge graph.\");\nconst SearchApiGetCachedSearchById_SitelinkSchema = z.object({\n link: z.string().describe(\"Sitelink URL\").nullable().optional(),\n title: z.string().describe(\"Sitelink title\").nullable().optional(),\n}).passthrough().describe(\"Additional page links for a search result.\");\nconst SearchApiGetCachedSearchById_OrganicResultSchema = z.object({\n date: z.string().describe(\"Publication or last updated date\").nullable().optional(),\n link: z.string().describe(\"Result URL\").nullable().optional(),\n title: z.string().describe(\"Result title\").nullable().optional(),\n snippet: z.string().describe(\"Result description\").nullable().optional(),\n position: z.number().int().describe(\"Result ranking\").nullable().optional(),\n sitelinks: z.array(SearchApiGetCachedSearchById_SitelinkSchema).describe(\"Additional page links\").nullable().optional(),\n}).passthrough().describe(\"Individual organic search result.\");\nconst SearchApiGetCachedSearchById_SearchMetadataSchema = z.object({\n id: z.string().describe(\"Unique search identifier\").nullable().optional(),\n status: z.string().describe(\"Request completion status (e.g., 'Success')\").nullable().optional(),\n html_url: z.string().describe(\"Link to cached HTML response\").nullable().optional(),\n json_url: z.string().describe(\"Link to JSON response\").nullable().optional(),\n created_at: z.string().describe(\"ISO timestamp of when the search was created\").nullable().optional(),\n request_url: z.string().describe(\"Actual Google URL queried\").nullable().optional(),\n total_time_taken: z.number().describe(\"Combined processing time\").nullable().optional(),\n parsing_time_taken: z.number().describe(\"Duration for response parsing\").nullable().optional(),\n request_time_taken: z.number().describe(\"Duration in seconds for data retrieval\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the cached search request.\");\nconst SearchApiGetCachedSearchById_RelatedSearchSchema = z.object({\n link: z.string().describe(\"Search URL for suggestion\").nullable().optional(),\n query: z.string().describe(\"Suggested query\").nullable().optional(),\n}).passthrough().describe(\"Related search suggestion.\");\nconst SearchApiGetCachedSearchById_SearchParametersSchema = z.object({\n q: z.string().describe(\"Search query\").nullable().optional(),\n gl: z.string().describe(\"Country setting\").nullable().optional(),\n hl: z.string().describe(\"Language setting\").nullable().optional(),\n device: z.string().describe(\"Device type (desktop/mobile/tablet)\").nullable().optional(),\n engine: z.string().describe(\"Search engine type used\").nullable().optional(),\n location: z.string().describe(\"Geographic location used\").nullable().optional(),\n google_domain: z.string().describe(\"Google domain used\").nullable().optional(),\n location_used: z.string().describe(\"Resolved location\").nullable().optional(),\n}).passthrough().describe(\"Original query parameters from the search request.\");\nconst SearchApiGetCachedSearchById_SearchInformationSchema = z.object({\n total_results: z.number().int().describe(\"Approximate result count\").nullable().optional(),\n query_displayed: z.string().describe(\"User-facing query text\").nullable().optional(),\n detected_location: z.string().describe(\"Inferred user location\").nullable().optional(),\n time_taken_displayed: z.number().describe(\"Google's reported search time\").nullable().optional(),\n}).passthrough().describe(\"Information about the search results.\");\nconst SearchApiGetCachedSearchById_DiscussionForumSchema = z.object({\n link: z.string().describe(\"Discussion URL\").nullable().optional(),\n title: z.string().describe(\"Discussion title\").nullable().optional(),\n source: z.string().describe(\"Forum source (e.g., Reddit)\").nullable().optional(),\n snippet: z.string().describe(\"Discussion snippet\").nullable().optional(),\n position: z.number().int().describe(\"Result position\").nullable().optional(),\n}).passthrough().describe(\"Community discussion or forum result.\");\nexport const SearchApiGetCachedSearchByIdOutput = z.object({\n ads: z.array(SearchApiGetCachedSearchById_AdSchema).describe(\"Paid search advertisements with pricing and sitelinks\").nullable().optional(),\n jobs: z.array(SearchApiGetCachedSearchById_JobSchema).describe(\"Job postings with company, location, and qualifications\").nullable().optional(),\n answer_box: SearchApiGetCachedSearchById_AnswerBoxSchema.nullable().optional(),\n shopping_ads: z.array(SearchApiGetCachedSearchById_ShoppingAdSchema).describe(\"Product listings with prices and merchant ratings\").nullable().optional(),\n inline_images: z.array(SearchApiGetCachedSearchById_InlineImageSchema).describe(\"Image suggestions and galleries\").nullable().optional(),\n inline_videos: z.array(SearchApiGetCachedSearchById_InlineVideoSchema).describe(\"Embedded video results with timestamps\").nullable().optional(),\n local_results: z.array(SearchApiGetCachedSearchById_LocalResultSchema).describe(\"Business listings with ratings, hours, and map data\").nullable().optional(),\n knowledge_graph: SearchApiGetCachedSearchById_KnowledgeGraphSchema.nullable().optional(),\n organic_results: z.array(SearchApiGetCachedSearchById_OrganicResultSchema).describe(\"Array of web results\").nullable().optional(),\n search_metadata: SearchApiGetCachedSearchById_SearchMetadataSchema.nullable().optional(),\n related_searches: z.array(SearchApiGetCachedSearchById_RelatedSearchSchema).describe(\"Suggested query refinements\").nullable().optional(),\n search_parameters: SearchApiGetCachedSearchById_SearchParametersSchema.nullable().optional(),\n search_information: SearchApiGetCachedSearchById_SearchInformationSchema.nullable().optional(),\n discussions_and_forums: z.array(SearchApiGetCachedSearchById_DiscussionForumSchema).describe(\"Community content from Reddit and similar platforms\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the complete cached search results in JSON format.\");\n\nexport const searchApiGetCachedSearchById = action(\"SEARCH_API_GET_CACHED_SEARCH_BY_ID\", {\n slug: \"search_api-get-cached-search-by-id\",\n name: \"Get Cached Search by ID\",\n description: \"Tool to retrieve cached search results by search ID in JSON format. Use when you need to access previously executed search results without re-running the query. The search ID is found in the search_metadata.id or search_metadata.json_url field from initial search responses. Cached results are available for 90 days.\",\n input: SearchApiGetCachedSearchByIdInput,\n output: SearchApiGetCachedSearchByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO,EACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACvO,CAAC,CAAC,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
|
|
3
3
|
//#region src/actions/get-cached-search-html-by-id.ts
|
|
4
4
|
const SearchApiGetCachedSearchHtmlByIdInput = zod.z.object({ search_id: zod.z.string().describe("The unique identifier for a previously executed search. This ID is found in the 'id' or 'html_url' field of the search_metadata from initial search responses.") }).describe("Request model for retrieving cached search results in HTML format.");
|
|
5
5
|
const SearchApiGetCachedSearchHtmlByIdOutput = zod.z.object({
|
|
6
|
-
search_id: zod.z.string().describe("The search ID that was retrieved."),
|
|
7
|
-
html_content: zod.z.string().describe("Raw HTML content of the cached Google search results page captured during the original search request.")
|
|
8
|
-
}).describe("Response model containing the cached search results HTML.");
|
|
6
|
+
search_id: zod.z.string().describe("The search ID that was retrieved.").nullable(),
|
|
7
|
+
html_content: zod.z.string().describe("Raw HTML content of the cached Google search results page captured during the original search request.").nullable()
|
|
8
|
+
}).passthrough().describe("Response model containing the cached search results HTML.");
|
|
9
9
|
const searchApiGetCachedSearchHtmlById = require_action.action("SEARCH_API_GET_CACHED_SEARCH_HTML_BY_ID", {
|
|
10
10
|
slug: "search_api-get-cached-search-html-by-id",
|
|
11
11
|
name: "Get Cached Search HTML by ID",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cached-search-html-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetCachedSearchHtmlByIdInput
|
|
1
|
+
{"version":3,"file":"get-cached-search-html-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetCachedSearchHtmlByIdInput = z.object({\n search_id: z.string().describe(\"The unique identifier for a previously executed search. This ID is found in the 'id' or 'html_url' field of the search_metadata from initial search responses.\"),\n}).describe(\"Request model for retrieving cached search results in HTML format.\");\nexport const SearchApiGetCachedSearchHtmlByIdOutput = z.object({\n search_id: z.string().describe(\"The search ID that was retrieved.\").nullable(),\n html_content: z.string().describe(\"Raw HTML content of the cached Google search results page captured during the original search request.\").nullable(),\n}).passthrough().describe(\"Response model containing the cached search results HTML.\");\n\nexport const searchApiGetCachedSearchHtmlById = action(\"SEARCH_API_GET_CACHED_SEARCH_HTML_BY_ID\", {\n slug: \"search_api-get-cached-search-html-by-id\",\n name: \"Get Cached Search HTML by ID\",\n description: \"Tool to retrieve cached search results by search ID in HTML format. Use when you need to access the raw HTML snapshot of a previous search execution. The search ID is available in the search_metadata.id or search_metadata.html_url field from initial search responses.\",\n input: SearchApiGetCachedSearchHtmlByIdInput,\n output: SearchApiGetCachedSearchHtmlByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,EACjM,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,mCAAmCC,eAAAA,OAAO,2CAA2C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-cached-search-html-by-id.d.ts
|
|
4
|
-
declare const SearchApiGetCachedSearchHtmlByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SearchApiGetCachedSearchHtmlByIdInput: z.ZodObject<{
|
|
5
|
+
search_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SearchApiGetCachedSearchHtmlByIdOutput: z.ZodObject<{
|
|
8
|
+
search_id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
html_content: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const searchApiGetCachedSearchHtmlById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
search_id: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { searchApiGetCachedSearchHtmlById };
|
|
9
16
|
//# sourceMappingURL=get-cached-search-html-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cached-search-html-by-id.d.cts","names":[],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"get-cached-search-html-by-id.d.cts","names":[],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAGrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAKtC,gCAAA,gCAAgC,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-cached-search-html-by-id.d.ts
|
|
4
|
-
declare const SearchApiGetCachedSearchHtmlByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SearchApiGetCachedSearchHtmlByIdInput: z.ZodObject<{
|
|
5
|
+
search_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SearchApiGetCachedSearchHtmlByIdOutput: z.ZodObject<{
|
|
8
|
+
search_id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
html_content: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const searchApiGetCachedSearchHtmlById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
search_id: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { searchApiGetCachedSearchHtmlById };
|
|
9
16
|
//# sourceMappingURL=get-cached-search-html-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cached-search-html-by-id.d.mts","names":[],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"get-cached-search-html-by-id.d.mts","names":[],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAGrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAKtC,gCAAA,gCAAgC,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const searchApiGetCachedSearchHtmlById = action("SEARCH_API_GET_CACHED_SEARCH_HT
|
|
|
6
6
|
description: "Tool to retrieve cached search results by search ID in HTML format. Use when you need to access the raw HTML snapshot of a previous search execution. The search ID is available in the search_metadata.id or search_metadata.html_url field from initial search responses.",
|
|
7
7
|
input: z.object({ search_id: z.string().describe("The unique identifier for a previously executed search. This ID is found in the 'id' or 'html_url' field of the search_metadata from initial search responses.") }).describe("Request model for retrieving cached search results in HTML format."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
search_id: z.string().describe("The search ID that was retrieved."),
|
|
10
|
-
html_content: z.string().describe("Raw HTML content of the cached Google search results page captured during the original search request.")
|
|
11
|
-
}).describe("Response model containing the cached search results HTML.")
|
|
9
|
+
search_id: z.string().describe("The search ID that was retrieved.").nullable(),
|
|
10
|
+
html_content: z.string().describe("Raw HTML content of the cached Google search results page captured during the original search request.").nullable()
|
|
11
|
+
}).passthrough().describe("Response model containing the cached search results HTML.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { searchApiGetCachedSearchHtmlById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cached-search-html-by-id.mjs","names":[],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetCachedSearchHtmlByIdInput
|
|
1
|
+
{"version":3,"file":"get-cached-search-html-by-id.mjs","names":[],"sources":["../../src/actions/get-cached-search-html-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetCachedSearchHtmlByIdInput = z.object({\n search_id: z.string().describe(\"The unique identifier for a previously executed search. This ID is found in the 'id' or 'html_url' field of the search_metadata from initial search responses.\"),\n}).describe(\"Request model for retrieving cached search results in HTML format.\");\nexport const SearchApiGetCachedSearchHtmlByIdOutput = z.object({\n search_id: z.string().describe(\"The search ID that was retrieved.\").nullable(),\n html_content: z.string().describe(\"Raw HTML content of the cached Google search results page captured during the original search request.\").nullable(),\n}).passthrough().describe(\"Response model containing the cached search results HTML.\");\n\nexport const searchApiGetCachedSearchHtmlById = action(\"SEARCH_API_GET_CACHED_SEARCH_HTML_BY_ID\", {\n slug: \"search_api-get-cached-search-html-by-id\",\n name: \"Get Cached Search HTML by ID\",\n description: \"Tool to retrieve cached search results by search ID in HTML format. Use when you need to access the raw HTML snapshot of a previous search execution. The search ID is available in the search_metadata.id or search_metadata.html_url field from initial search responses.\",\n input: SearchApiGetCachedSearchHtmlByIdInput,\n output: SearchApiGetCachedSearchHtmlByIdOutput,\n});\n"],"mappings":";;AAYA,MAAa,mCAAmC,OAAO,2CAA2C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZmD,EAAE,OAAO,EAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,EACjM,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAVoD,EAAE,OAAO;EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
|
|
@@ -16,8 +16,8 @@ const SearchApiGetLocations_LocationItemSchema = zod.z.object({
|
|
|
16
16
|
country_code: zod.z.string().describe("Two-letter country code following ISO 3166-1 alpha-2 standard (e.g., 'US', 'GB', 'JP').").nullable().optional(),
|
|
17
17
|
canonical_name: zod.z.string().describe("Standardized name format specifically designed for use in the Google Search API. This is the value that should be used when specifying location parameters in Google Search API requests.").nullable().optional(),
|
|
18
18
|
google_parent_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional()
|
|
19
|
-
}).describe("Model representing a single location result.");
|
|
20
|
-
const SearchApiGetLocationsOutput = zod.z.object({ locations: zod.z.array(SearchApiGetLocations_LocationItemSchema).describe("List of locations matching the search query.") }).describe("Response model containing an array of location objects.");
|
|
19
|
+
}).passthrough().describe("Model representing a single location result.");
|
|
20
|
+
const SearchApiGetLocationsOutput = zod.z.object({ locations: zod.z.array(SearchApiGetLocations_LocationItemSchema).describe("List of locations matching the search query.") }).passthrough().describe("Response model containing an array of location objects.");
|
|
21
21
|
const searchApiGetLocations = require_action.action("SEARCH_API_GET_LOCATIONS", {
|
|
22
22
|
slug: "search_api-get-locations",
|
|
23
23
|
name: "Get Locations",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-locations.cjs","names":["z","action"],"sources":["../../src/actions/get-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetLocationsInput
|
|
1
|
+
{"version":3,"file":"get-locations.cjs","names":["z","action"],"sources":["../../src/actions/get-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SearchApiGetLocationsInput = z.object({\n q: z.string().describe(\"Search query for location lookup. The location name you want to search for (e.g., 'new york', 'london', 'tokyo').\"),\n limit: z.number().int().describe(\"Maximum number of results to return. Default is 10, maximum allowed is 100.\").optional(),\n zero_retention: z.boolean().describe(\"Enterprise feature only. When set to true, disables logging of the request. Only available for enterprise accounts.\").optional(),\n}).describe(\"Request model for retrieving available locations for geo-localized search queries.\");\nconst SearchApiGetLocations_LocationItemSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the location.\").nullable().optional(),\n lon: z.number().describe(\"Longitude coordinate of the location.\").nullable().optional(),\n name: z.string().describe(\"Common name of the location as it appears in everyday usage.\").nullable().optional(),\n reach: z.number().int().describe(\"Population size or reach within the specified location.\").nullable().optional(),\n google_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n target_type: z.string().describe(\"Classification of the location type (e.g., City, Country, County, Airport, Region, State, Province).\").nullable().optional(),\n country_code: z.string().describe(\"Two-letter country code following ISO 3166-1 alpha-2 standard (e.g., 'US', 'GB', 'JP').\").nullable().optional(),\n canonical_name: z.string().describe(\"Standardized name format specifically designed for use in the Google Search API. This is the value that should be used when specifying location parameters in Google Search API requests.\").nullable().optional(),\n google_parent_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Model representing a single location result.\");\nexport const SearchApiGetLocationsOutput = z.object({\n locations: z.array(SearchApiGetLocations_LocationItemSchema).describe(\"List of locations matching the search query.\"),\n}).passthrough().describe(\"Response model containing an array of location objects.\");\n\nexport const searchApiGetLocations = action(\"SEARCH_API_GET_LOCATIONS\", {\n slug: \"search_api-get-locations\",\n name: \"Get Locations\",\n description: \"Tool to get available locations for geo-localized search queries. Use when you need to find location identifiers for targeting Google searches to specific geographic areas. Returns location metadata including identifiers, names, coordinates, and population reach.\",\n input: SearchApiGetLocationsInput,\n output: SearchApiGetLocationsOutput,\n});\n"],"mappings":";;;AAIA,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AAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,WAAWA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-locations.d.ts
|
|
4
|
-
declare const SearchApiGetLocationsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SearchApiGetLocationsInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
zero_retention: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SearchApiGetLocationsOutput: z.ZodObject<{
|
|
10
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
11
|
+
lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
reach: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
google_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
16
|
+
target_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
canonical_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
google_parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const searchApiGetLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
q: string;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
zero_retention?: boolean | undefined;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { searchApiGetLocations };
|
|
9
29
|
//# sourceMappingURL=get-locations.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-locations.d.cts","names":[],"sources":["../../src/actions/get-locations.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-locations.d.cts","names":[],"sources":["../../src/actions/get-locations.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-locations.d.ts
|
|
4
|
-
declare const SearchApiGetLocationsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SearchApiGetLocationsInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
zero_retention: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SearchApiGetLocationsOutput: z.ZodObject<{
|
|
10
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
11
|
+
lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
reach: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
google_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
16
|
+
target_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
canonical_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
google_parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const searchApiGetLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
q: string;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
zero_retention?: boolean | undefined;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { searchApiGetLocations };
|
|
9
29
|
//# sourceMappingURL=get-locations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-locations.d.mts","names":[],"sources":["../../src/actions/get-locations.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-locations.d.mts","names":[],"sources":["../../src/actions/get-locations.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -16,13 +16,13 @@ const SearchApiGetLocations_LocationItemSchema = z.object({
|
|
|
16
16
|
country_code: z.string().describe("Two-letter country code following ISO 3166-1 alpha-2 standard (e.g., 'US', 'GB', 'JP').").nullable().optional(),
|
|
17
17
|
canonical_name: z.string().describe("Standardized name format specifically designed for use in the Google Search API. This is the value that should be used when specifying location parameters in Google Search API requests.").nullable().optional(),
|
|
18
18
|
google_parent_id: z.union([z.number().int(), z.string()]).nullable().optional()
|
|
19
|
-
}).describe("Model representing a single location result.");
|
|
19
|
+
}).passthrough().describe("Model representing a single location result.");
|
|
20
20
|
const searchApiGetLocations = action("SEARCH_API_GET_LOCATIONS", {
|
|
21
21
|
slug: "search_api-get-locations",
|
|
22
22
|
name: "Get Locations",
|
|
23
23
|
description: "Tool to get available locations for geo-localized search queries. Use when you need to find location identifiers for targeting Google searches to specific geographic areas. Returns location metadata including identifiers, names, coordinates, and population reach.",
|
|
24
24
|
input: SearchApiGetLocationsInput,
|
|
25
|
-
output: z.object({ locations: z.array(SearchApiGetLocations_LocationItemSchema).describe("List of locations matching the search query.") }).describe("Response model containing an array of location objects.")
|
|
25
|
+
output: z.object({ locations: z.array(SearchApiGetLocations_LocationItemSchema).describe("List of locations matching the search query.") }).passthrough().describe("Response model containing an array of location objects.")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { searchApiGetLocations };
|