@keystrokehq/search_api 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/get-account-info.cjs +4 -4
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +4 -4
- package/dist/actions/get-account-info.d.mts +4 -4
- package/dist/actions/get-account-info.mjs +4 -4
- 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 +16 -16
- package/dist/actions/get-cached-search-by-id.d.mts +16 -16
- 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 +1 -1
- package/dist/actions/get-cached-search-html-by-id.cjs.map +1 -1
- package/dist/actions/get-cached-search-html-by-id.d.cts +1 -1
- package/dist/actions/get-cached-search-html-by-id.d.mts +1 -1
- package/dist/actions/get-cached-search-html-by-id.mjs +1 -1
- 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 +2 -2
- package/dist/actions/get-locations.d.mts +2 -2
- 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 +27 -27
- package/dist/actions/search.d.mts +27 -27
- package/dist/actions/search.mjs +27 -27
- package/dist/actions/search.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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.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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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,CAAC,SAAS,oEAAoE;AAChF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,CAAC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,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,eAAe,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,eAAe,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,iBAAiB,kDAAkD,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,CAAC,SAAS,oEAAoE;AAChF,MAAM,wCAAwC,EAAE,OAAO;CACrD,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,SAAS,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO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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,YAAY,CAAC,CAAC,SAAS,8EAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const SearchApiGetCachedSearchHtmlByIdInput = zod.z.object({ search_id: zod.z.st
|
|
|
5
5
|
const SearchApiGetCachedSearchHtmlByIdOutput = zod.z.object({
|
|
6
6
|
search_id: zod.z.string().describe("The search ID that was retrieved.").nullable(),
|
|
7
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
|
-
}).describe("Response model containing the cached search results HTML.");
|
|
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 = 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}).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,SAAS,2DAA2D;
|
|
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"}
|
|
@@ -7,7 +7,7 @@ declare const SearchApiGetCachedSearchHtmlByIdInput: z.ZodObject<{
|
|
|
7
7
|
declare const SearchApiGetCachedSearchHtmlByIdOutput: z.ZodObject<{
|
|
8
8
|
search_id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
html_content: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const searchApiGetCachedSearchHtmlById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
search_id: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ declare const SearchApiGetCachedSearchHtmlByIdInput: z.ZodObject<{
|
|
|
7
7
|
declare const SearchApiGetCachedSearchHtmlByIdOutput: z.ZodObject<{
|
|
8
8
|
search_id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
html_content: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const searchApiGetCachedSearchHtmlById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
search_id: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ const searchApiGetCachedSearchHtmlById = action("SEARCH_API_GET_CACHED_SEARCH_HT
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
search_id: z.string().describe("The search ID that was retrieved.").nullable(),
|
|
10
10
|
html_content: z.string().describe("Raw HTML content of the cached Google search results page captured during the original search request.").nullable()
|
|
11
|
-
}).describe("Response model containing the cached search results HTML.")
|
|
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 = 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}).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,SAAS,
|
|
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 = 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}).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}).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,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACvK,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrP,kBAAkBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
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,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACvK,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrP,kBAAkBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,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"}
|
|
@@ -17,8 +17,8 @@ declare const SearchApiGetLocationsOutput: z.ZodObject<{
|
|
|
17
17
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
canonical_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
google_parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
20
|
-
}, z.core.$
|
|
21
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const searchApiGetLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
q: string;
|
|
24
24
|
limit?: number | undefined;
|
|
@@ -17,8 +17,8 @@ declare const SearchApiGetLocationsOutput: z.ZodObject<{
|
|
|
17
17
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
canonical_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
google_parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
20
|
-
}, z.core.$
|
|
21
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const searchApiGetLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
q: string;
|
|
24
24
|
limit?: number | undefined;
|
|
@@ -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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-locations.mjs","names":[],"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}).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}).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,MAAa,6BAA6B,EAAE,OAAO;CACjD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACvK,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrP,kBAAkB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"get-locations.mjs","names":[],"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,MAAa,6BAA6B,EAAE,OAAO;CACjD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACvK,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrP,kBAAkB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAKxE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,WAAW,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
package/dist/actions/search.cjs
CHANGED
|
@@ -28,11 +28,11 @@ const SearchApiSearch_AdvertisementSchema = zod.z.object({
|
|
|
28
28
|
link: zod.z.string().describe("Ad destination URL.").nullable().optional(),
|
|
29
29
|
title: zod.z.string().describe("Ad title.").nullable().optional(),
|
|
30
30
|
position: zod.z.number().int().describe("Ad position.").nullable().optional(),
|
|
31
|
-
sitelinks: zod.z.union([zod.z.array(zod.z.
|
|
31
|
+
sitelinks: zod.z.union([zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
32
32
|
description: zod.z.string().describe("Ad description.").nullable().optional(),
|
|
33
33
|
tracking_url: zod.z.string().describe("Ad tracking URL.").nullable().optional(),
|
|
34
34
|
displayed_link: zod.z.string().describe("Displayed ad URL.").nullable().optional()
|
|
35
|
-
}).describe("Paid advertisement result.");
|
|
35
|
+
}).passthrough().describe("Paid advertisement result.");
|
|
36
36
|
const SearchApiSearch_JobResultSchema = zod.z.object({
|
|
37
37
|
title: zod.z.string().describe("Job title.").nullable().optional(),
|
|
38
38
|
location: zod.z.string().describe("Job location.").nullable().optional(),
|
|
@@ -40,19 +40,19 @@ const SearchApiSearch_JobResultSchema = zod.z.object({
|
|
|
40
40
|
extensions: zod.z.array(zod.z.string()).describe("Additional job details (salary, benefits, etc.).").nullable().optional(),
|
|
41
41
|
description: zod.z.string().describe("Job description.").nullable().optional(),
|
|
42
42
|
company_name: zod.z.string().describe("Employer name.").nullable().optional()
|
|
43
|
-
}).describe("Job posting result.");
|
|
43
|
+
}).passthrough().describe("Job posting result.");
|
|
44
44
|
const SearchApiSearch_EventResultSchema = zod.z.object({
|
|
45
45
|
date: zod.z.string().describe("Event date and time.").nullable().optional(),
|
|
46
46
|
link: zod.z.string().describe("Event details URL.").nullable().optional(),
|
|
47
47
|
title: zod.z.string().describe("Event title.").nullable().optional(),
|
|
48
48
|
venue: zod.z.string().describe("Event venue.").nullable().optional(),
|
|
49
49
|
thumbnail: zod.z.string().describe("Event image URL.").nullable().optional()
|
|
50
|
-
}).describe("Event listing result.");
|
|
50
|
+
}).passthrough().describe("Event listing result.");
|
|
51
51
|
const SearchApiSearch_PaginationSchema = zod.z.object({
|
|
52
52
|
next: zod.z.string().describe("Link to next page.").nullable().optional(),
|
|
53
53
|
current: zod.z.number().int().describe("Current page number.").nullable().optional(),
|
|
54
|
-
other_pages: zod.z.
|
|
55
|
-
}).describe("Pagination information.");
|
|
54
|
+
other_pages: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Links to other pages.").nullable().optional()
|
|
55
|
+
}).passthrough().describe("Pagination information.");
|
|
56
56
|
const SearchApiSearch_ShoppingAdSchema = zod.z.object({
|
|
57
57
|
link: zod.z.string().describe("Product page URL.").nullable().optional(),
|
|
58
58
|
price: zod.z.string().describe("Product price.").nullable().optional(),
|
|
@@ -61,14 +61,14 @@ const SearchApiSearch_ShoppingAdSchema = zod.z.object({
|
|
|
61
61
|
source: zod.z.string().describe("Merchant/seller name.").nullable().optional(),
|
|
62
62
|
reviews: zod.z.number().int().describe("Number of reviews.").nullable().optional(),
|
|
63
63
|
thumbnail: zod.z.string().describe("Product image URL.").nullable().optional()
|
|
64
|
-
}).describe("Shopping product ad result.");
|
|
64
|
+
}).passthrough().describe("Shopping product ad result.");
|
|
65
65
|
const SearchApiSearch_InlineImageSchema = zod.z.object({
|
|
66
66
|
link: zod.z.string().describe("Image page URL.").nullable().optional(),
|
|
67
67
|
title: zod.z.string().describe("Image title or alt text.").nullable().optional(),
|
|
68
68
|
source: zod.z.string().describe("Image source site.").nullable().optional(),
|
|
69
69
|
original: zod.z.string().describe("Original image URL.").nullable().optional(),
|
|
70
70
|
thumbnail: zod.z.string().describe("Thumbnail URL.").nullable().optional()
|
|
71
|
-
}).describe("Inline image result.");
|
|
71
|
+
}).passthrough().describe("Inline image result.");
|
|
72
72
|
const SearchApiSearch_InlineVideoSchema = zod.z.object({
|
|
73
73
|
link: zod.z.string().describe("Video URL.").nullable().optional(),
|
|
74
74
|
title: zod.z.string().describe("Video title.").nullable().optional(),
|
|
@@ -77,7 +77,7 @@ const SearchApiSearch_InlineVideoSchema = zod.z.object({
|
|
|
77
77
|
duration: zod.z.string().describe("Video duration.").nullable().optional(),
|
|
78
78
|
platform: zod.z.string().describe("Video platform (YouTube, etc).").nullable().optional(),
|
|
79
79
|
thumbnail: zod.z.string().describe("Video thumbnail URL.").nullable().optional()
|
|
80
|
-
}).describe("Inline video result.");
|
|
80
|
+
}).passthrough().describe("Inline video result.");
|
|
81
81
|
const SearchApiSearch_PlaceSchema = zod.z.object({
|
|
82
82
|
hours: zod.z.string().describe("Operating hours.").nullable().optional(),
|
|
83
83
|
phone: zod.z.string().describe("Phone number.").nullable().optional(),
|
|
@@ -87,30 +87,30 @@ const SearchApiSearch_PlaceSchema = zod.z.object({
|
|
|
87
87
|
reviews: zod.z.number().int().describe("Number of reviews.").nullable().optional(),
|
|
88
88
|
position: zod.z.number().int().describe("Place position in list.").nullable().optional(),
|
|
89
89
|
thumbnail: zod.z.string().describe("Place image URL.").nullable().optional(),
|
|
90
|
-
gps_coordinates: zod.z.
|
|
91
|
-
}).describe("Local business or place listing.");
|
|
90
|
+
gps_coordinates: zod.z.record(zod.z.string(), zod.z.unknown()).describe("GPS coordinates (latitude, longitude).").nullable().optional()
|
|
91
|
+
}).passthrough().describe("Local business or place listing.");
|
|
92
92
|
const SearchApiSearch_LocalResultsSchema = zod.z.object({
|
|
93
93
|
places: zod.z.array(SearchApiSearch_PlaceSchema).describe("List of local places.").nullable().optional(),
|
|
94
94
|
more_locations_link: zod.z.string().describe("Link to view more locations.").nullable().optional()
|
|
95
|
-
}).describe("Local search results container.");
|
|
95
|
+
}).passthrough().describe("Local search results container.");
|
|
96
96
|
const SearchApiSearch_WeatherResultSchema = zod.z.object({
|
|
97
97
|
wind: zod.z.string().describe("Wind speed.").nullable().optional(),
|
|
98
|
-
forecast: zod.z.array(zod.z.
|
|
98
|
+
forecast: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Weather forecast data.").nullable().optional(),
|
|
99
99
|
humidity: zod.z.string().describe("Humidity percentage.").nullable().optional(),
|
|
100
100
|
location: zod.z.string().describe("Weather location.").nullable().optional(),
|
|
101
101
|
temperature: zod.z.string().describe("Current temperature.").nullable().optional(),
|
|
102
102
|
precipitation: zod.z.string().describe("Precipitation percentage.").nullable().optional()
|
|
103
|
-
}).describe("Weather information result.");
|
|
103
|
+
}).passthrough().describe("Weather information result.");
|
|
104
104
|
const SearchApiSearch_KnowledgeGraphSchema = zod.z.object({
|
|
105
105
|
type: zod.z.string().describe("Entity type or category.").nullable().optional(),
|
|
106
106
|
image: zod.z.string().describe("Entity image URL.").nullable().optional(),
|
|
107
107
|
title: zod.z.string().describe("Entity title.").nullable().optional(),
|
|
108
|
-
source: zod.z.
|
|
108
|
+
source: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Source information for the description.").nullable().optional(),
|
|
109
109
|
website: zod.z.string().describe("Entity website URL.").nullable().optional(),
|
|
110
|
-
profiles: zod.z.array(zod.z.
|
|
111
|
-
attributes: zod.z.
|
|
110
|
+
profiles: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Social media profiles.").nullable().optional(),
|
|
111
|
+
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional entity attributes.").nullable().optional(),
|
|
112
112
|
description: zod.z.string().describe("Entity description.").nullable().optional()
|
|
113
|
-
}).describe("Knowledge Graph entity information.");
|
|
113
|
+
}).passthrough().describe("Knowledge Graph entity information.");
|
|
114
114
|
const SearchApiSearch_OrganicResultSchema = zod.z.object({
|
|
115
115
|
date: zod.z.string().describe("Publication or indexed date.").nullable().optional(),
|
|
116
116
|
link: zod.z.string().describe("Result URL.").nullable().optional(),
|
|
@@ -118,12 +118,12 @@ const SearchApiSearch_OrganicResultSchema = zod.z.object({
|
|
|
118
118
|
favicon: zod.z.string().describe("Site favicon URL.").nullable().optional(),
|
|
119
119
|
snippet: zod.z.string().describe("Result snippet/description.").nullable().optional(),
|
|
120
120
|
position: zod.z.number().int().describe("Result position in list.").nullable().optional(),
|
|
121
|
-
sitelinks: zod.z.
|
|
122
|
-
rich_snippet: zod.z.
|
|
121
|
+
sitelinks: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Page sitelinks, can contain expanded or inline sitelinks as list of dicts.").nullable().optional(),
|
|
122
|
+
rich_snippet: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Rich snippet data.").nullable().optional(),
|
|
123
123
|
displayed_link: zod.z.string().describe("Displayed URL in results.").nullable().optional(),
|
|
124
124
|
cached_page_link: zod.z.string().describe("Link to cached version of page.").nullable().optional(),
|
|
125
125
|
snippet_highlighted_words: zod.z.array(zod.z.string()).describe("Highlighted keywords in snippet.").nullable().optional()
|
|
126
|
-
}).describe("Organic search result item.");
|
|
126
|
+
}).passthrough().describe("Organic search result item.");
|
|
127
127
|
const SearchApiSearch_SearchMetadataSchema = zod.z.object({
|
|
128
128
|
id: zod.z.string().describe("Unique request identifier.").nullable().optional(),
|
|
129
129
|
status: zod.z.string().describe("Request status.").nullable().optional(),
|
|
@@ -132,11 +132,11 @@ const SearchApiSearch_SearchMetadataSchema = zod.z.object({
|
|
|
132
132
|
processed_at: zod.z.string().describe("Request processing timestamp.").nullable().optional(),
|
|
133
133
|
raw_html_file: zod.z.string().describe("URL to raw HTML response file.").nullable().optional(),
|
|
134
134
|
prettify_html_file: zod.z.string().describe("URL to prettified HTML response file.").nullable().optional()
|
|
135
|
-
}).describe("Search request metadata including ID, status, and timing.");
|
|
135
|
+
}).passthrough().describe("Search request metadata including ID, status, and timing.");
|
|
136
136
|
const SearchApiSearch_RelatedSearchSchema = zod.z.object({
|
|
137
137
|
link: zod.z.string().describe("Search link for suggestion.").nullable().optional(),
|
|
138
138
|
query: zod.z.string().describe("Suggested search query.").nullable().optional()
|
|
139
|
-
}).describe("Related search suggestion.");
|
|
139
|
+
}).passthrough().describe("Related search suggestion.");
|
|
140
140
|
const SearchApiSearch_SearchParametersSchema = zod.z.object({
|
|
141
141
|
q: zod.z.string().describe("Search query.").nullable().optional(),
|
|
142
142
|
gl: zod.z.string().describe("Country code.").nullable().optional(),
|
|
@@ -146,19 +146,19 @@ const SearchApiSearch_SearchParametersSchema = zod.z.object({
|
|
|
146
146
|
engine: zod.z.string().describe("Search engine used.").nullable().optional(),
|
|
147
147
|
location: zod.z.string().describe("Search location.").nullable().optional(),
|
|
148
148
|
google_domain: zod.z.string().describe("Google domain used.").nullable().optional()
|
|
149
|
-
}).describe("Echo of search request parameters.");
|
|
149
|
+
}).passthrough().describe("Echo of search request parameters.");
|
|
150
150
|
const SearchApiSearch_SearchInformationSchema = zod.z.object({
|
|
151
151
|
total_results: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
152
152
|
query_displayed: zod.z.string().describe("The query as displayed in results.").nullable().optional(),
|
|
153
153
|
time_taken_displayed: zod.z.union([zod.z.string(), zod.z.number()]).nullable().optional()
|
|
154
|
-
}).describe("Search results summary.");
|
|
154
|
+
}).passthrough().describe("Search results summary.");
|
|
155
155
|
const SearchApiSearch_DiscussionResultSchema = zod.z.object({
|
|
156
156
|
date: zod.z.string().describe("Post date.").nullable().optional(),
|
|
157
157
|
link: zod.z.string().describe("Discussion URL.").nullable().optional(),
|
|
158
158
|
title: zod.z.string().describe("Discussion title.").nullable().optional(),
|
|
159
159
|
source: zod.z.string().describe("Source platform (Reddit, etc).").nullable().optional(),
|
|
160
160
|
snippet: zod.z.string().describe("Discussion snippet.").nullable().optional()
|
|
161
|
-
}).describe("Forum or discussion thread result.");
|
|
161
|
+
}).passthrough().describe("Forum or discussion thread result.");
|
|
162
162
|
const SearchApiSearchOutput = zod.z.object({
|
|
163
163
|
ads: zod.z.array(SearchApiSearch_AdvertisementSchema).describe("Paid advertisements.").nullable().optional(),
|
|
164
164
|
jobs: zod.z.array(SearchApiSearch_JobResultSchema).describe("Job postings.").nullable().optional(),
|
|
@@ -176,7 +176,7 @@ const SearchApiSearchOutput = zod.z.object({
|
|
|
176
176
|
search_parameters: SearchApiSearch_SearchParametersSchema.nullable().optional(),
|
|
177
177
|
search_information: SearchApiSearch_SearchInformationSchema.nullable().optional(),
|
|
178
178
|
discussions_and_forums: zod.z.array(SearchApiSearch_DiscussionResultSchema).describe("Forum threads and discussions.").nullable().optional()
|
|
179
|
-
}).describe("Response model containing search results with multiple content sections.\nThe availability of each section depends on the search engine and query.");
|
|
179
|
+
}).passthrough().describe("Response model containing search results with multiple content sections.\nThe availability of each section depends on the search engine and query.");
|
|
180
180
|
const searchApiSearch = require_action.action("SEARCH_API_SEARCH", {
|
|
181
181
|
slug: "search_api-search",
|
|
182
182
|
name: "Search",
|