@decodo/sdk-ts 2.7.0 → 3.1.0
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/README.md +25 -25
- package/build/cjs/index.cjs +250 -574
- package/build/cjs/index.d.cts +145 -156
- package/build/esm/generated/data-api.d.ts +162 -0
- package/build/esm/generated/data-api.js +232 -0
- package/build/esm/generated/parameters.js +3 -13
- package/build/esm/generated/request-schemas.d.ts +1 -428
- package/build/esm/generated/request-schemas.js +0 -478
- package/build/esm/generated/targets.d.ts +1 -144
- package/build/esm/generated/targets.js +1 -73
- package/build/esm/index.d.ts +2 -0
- package/build/esm/index.js +2 -0
- package/build/esm/schema/bundled-schema.d.ts +1 -1
- package/package.json +17 -13
package/build/cjs/index.cjs
CHANGED
|
@@ -40,7 +40,9 @@ __export(index_exports, {
|
|
|
40
40
|
TimeoutError: () => TimeoutError,
|
|
41
41
|
ValidationError: () => ValidationError,
|
|
42
42
|
WebScrapingApi: () => WebScrapingApi,
|
|
43
|
+
dataApiRequestSchemas: () => dataApiRequestSchemas,
|
|
43
44
|
parameterMeta: () => parameterMeta,
|
|
45
|
+
requestSchemas: () => requestSchemas,
|
|
44
46
|
targetMeta: () => targetMeta,
|
|
45
47
|
targets: () => targets
|
|
46
48
|
});
|
|
@@ -183,35 +185,26 @@ var z = __toESM(require("zod"), 1);
|
|
|
183
185
|
|
|
184
186
|
// src/generated/targets.ts
|
|
185
187
|
var Target = /* @__PURE__ */ ((_Target) => {
|
|
186
|
-
_Target["UniversalEcommerce"] = "universal_ecommerce";
|
|
187
188
|
_Target["GoogleSearch"] = "google_search";
|
|
188
189
|
_Target["GoogleTravelHotels"] = "google_travel_hotels";
|
|
189
|
-
_Target["GoogleTrendsExplore"] = "google_trends_explore";
|
|
190
|
-
_Target["GoogleShoppingSearch"] = "google_shopping_search";
|
|
191
|
-
_Target["GoogleShoppingProduct"] = "google_shopping_product";
|
|
192
190
|
_Target["Google"] = "google";
|
|
193
|
-
_Target["GoogleSuggest"] = "google_suggest";
|
|
194
|
-
_Target["GoogleMaps"] = "google_maps";
|
|
195
191
|
_Target["GoogleAiMode"] = "google_ai_mode";
|
|
196
192
|
_Target["GoogleAds"] = "google_ads";
|
|
197
193
|
_Target["GoogleLens"] = "google_lens";
|
|
198
194
|
_Target["BingSearch"] = "bing_search";
|
|
199
195
|
_Target["Bing"] = "bing";
|
|
200
|
-
_Target["YoutubeTranscript"] = "youtube_transcript";
|
|
201
196
|
_Target["AmazonProduct"] = "amazon_product";
|
|
202
197
|
_Target["AmazonPricing"] = "amazon_pricing";
|
|
203
198
|
_Target["AmazonSearch"] = "amazon_search";
|
|
204
199
|
_Target["AmazonSellers"] = "amazon_sellers";
|
|
205
200
|
_Target["AmazonBestsellers"] = "amazon_bestsellers";
|
|
206
201
|
_Target["Amazon"] = "amazon";
|
|
207
|
-
_Target["Ecommerce"] = "ecommerce";
|
|
208
202
|
_Target["WalmartProduct"] = "walmart_product";
|
|
209
203
|
_Target["WalmartSearch"] = "walmart_search";
|
|
210
204
|
_Target["Walmart"] = "walmart";
|
|
211
205
|
_Target["TargetProduct"] = "target_product";
|
|
212
206
|
_Target["TargetSearch"] = "target_search";
|
|
213
207
|
_Target["Target"] = "target";
|
|
214
|
-
_Target["LowesSearch"] = "lowes_search";
|
|
215
208
|
_Target["Universal"] = "universal";
|
|
216
209
|
_Target["Chatgpt"] = "chatgpt";
|
|
217
210
|
_Target["Perplexity"] = "perplexity";
|
|
@@ -221,7 +214,6 @@ var Target = /* @__PURE__ */ ((_Target) => {
|
|
|
221
214
|
_Target["Mobile"] = "mobile";
|
|
222
215
|
_Target["Airbnb"] = "airbnb";
|
|
223
216
|
_Target["AppleAppStore"] = "apple_app_store";
|
|
224
|
-
_Target["InstagramGraphqlProfile"] = "instagram_graphql_profile";
|
|
225
217
|
_Target["TiktokPost"] = "tiktok_post";
|
|
226
218
|
_Target["TiktokShopSearch"] = "tiktok_shop_search";
|
|
227
219
|
_Target["TiktokShopProduct"] = "tiktok_shop_product";
|
|
@@ -229,21 +221,14 @@ var Target = /* @__PURE__ */ ((_Target) => {
|
|
|
229
221
|
_Target["RedditPost"] = "reddit_post";
|
|
230
222
|
_Target["RedditSubreddit"] = "reddit_subreddit";
|
|
231
223
|
_Target["RedditUser"] = "reddit_user";
|
|
232
|
-
_Target["YoutubeVideo"] = "youtube_video";
|
|
233
224
|
_Target["YoutubeMetadata"] = "youtube_metadata";
|
|
234
225
|
_Target["YoutubeSearch"] = "youtube_search";
|
|
235
|
-
_Target["YoutubeSearchMax"] = "youtube_search_max";
|
|
236
226
|
_Target["YoutubeSubtitles"] = "youtube_subtitles";
|
|
237
227
|
_Target["YoutubeChannel"] = "youtube_channel";
|
|
238
228
|
return _Target;
|
|
239
229
|
})(Target || {});
|
|
240
|
-
var targets = ["
|
|
230
|
+
var targets = ["google_search" /* GoogleSearch */, "google_travel_hotels" /* GoogleTravelHotels */, "google" /* Google */, "google_ai_mode" /* GoogleAiMode */, "google_ads" /* GoogleAds */, "google_lens" /* GoogleLens */, "bing_search" /* BingSearch */, "bing" /* Bing */, "amazon_product" /* AmazonProduct */, "amazon_pricing" /* AmazonPricing */, "amazon_search" /* AmazonSearch */, "amazon_sellers" /* AmazonSellers */, "amazon_bestsellers" /* AmazonBestsellers */, "amazon" /* Amazon */, "walmart_product" /* WalmartProduct */, "walmart_search" /* WalmartSearch */, "walmart" /* Walmart */, "target_product" /* TargetProduct */, "target_search" /* TargetSearch */, "target" /* Target */, "universal" /* Universal */, "chatgpt" /* Chatgpt */, "perplexity" /* Perplexity */, "gemini" /* Gemini */, "bbb" /* Bbb */, "autotrader" /* Autotrader */, "mobile" /* Mobile */, "airbnb" /* Airbnb */, "apple_app_store" /* AppleAppStore */, "tiktok_post" /* TiktokPost */, "tiktok_shop_search" /* TiktokShopSearch */, "tiktok_shop_product" /* TiktokShopProduct */, "tiktok" /* Tiktok */, "reddit_post" /* RedditPost */, "reddit_subreddit" /* RedditSubreddit */, "reddit_user" /* RedditUser */, "youtube_metadata" /* YoutubeMetadata */, "youtube_search" /* YoutubeSearch */, "youtube_subtitles" /* YoutubeSubtitles */, "youtube_channel" /* YoutubeChannel */];
|
|
241
231
|
var targetMeta = {
|
|
242
|
-
["universal_ecommerce" /* UniversalEcommerce */]: {
|
|
243
|
-
group: "None",
|
|
244
|
-
response_format: "html",
|
|
245
|
-
parameters: ["callback_url"]
|
|
246
|
-
},
|
|
247
232
|
["google_search" /* GoogleSearch */]: {
|
|
248
233
|
group: "Google",
|
|
249
234
|
response_format: "json",
|
|
@@ -254,36 +239,11 @@ var targetMeta = {
|
|
|
254
239
|
response_format: "html",
|
|
255
240
|
parameters: ["query", "headless", "locale", "device_type", "page_from", "date_range", "stars", "adults", "children", "session_id", "markdown", "callback_url"]
|
|
256
241
|
},
|
|
257
|
-
["google_trends_explore" /* GoogleTrendsExplore */]: {
|
|
258
|
-
group: "Google",
|
|
259
|
-
response_format: "json",
|
|
260
|
-
parameters: ["query", "geo", "device_type", "search_type", "date_start", "date_end", "callback_url"]
|
|
261
|
-
},
|
|
262
|
-
["google_shopping_search" /* GoogleShoppingSearch */]: {
|
|
263
|
-
group: "Google",
|
|
264
|
-
response_format: "json",
|
|
265
|
-
parameters: ["query", "headless", "locale", "geo", "device_type", "page_from", "google_tbs", "parse", "session_id", "google_results_language", "markdown", "callback_url"]
|
|
266
|
-
},
|
|
267
|
-
["google_shopping_product" /* GoogleShoppingProduct */]: {
|
|
268
|
-
group: "Google",
|
|
269
|
-
response_format: "json",
|
|
270
|
-
parameters: ["query", "headless", "locale", "geo", "device_type", "page_from", "parse", "session_id", "google_results_language", "markdown", "xhr", "callback_url"]
|
|
271
|
-
},
|
|
272
242
|
["google" /* Google */]: {
|
|
273
243
|
group: "Google",
|
|
274
244
|
response_format: "json",
|
|
275
245
|
parameters: ["url", "headless", "locale", "device_type", "parse", "session_id", "markdown", "xhr", "page_count", "callback_url"]
|
|
276
246
|
},
|
|
277
|
-
["google_suggest" /* GoogleSuggest */]: {
|
|
278
|
-
group: "Google",
|
|
279
|
-
response_format: "json",
|
|
280
|
-
parameters: ["query", "device_type", "geo", "locale", "session_id", "callback_url"]
|
|
281
|
-
},
|
|
282
|
-
["google_maps" /* GoogleMaps */]: {
|
|
283
|
-
group: "Google",
|
|
284
|
-
response_format: "html",
|
|
285
|
-
parameters: ["query", "headless", "geo", "locale", "page_from", "device_type", "session_id", "google_results_language", "google_nfpr", "hotel_occupancy", "date_range", "markdown", "callback_url"]
|
|
286
|
-
},
|
|
287
247
|
["google_ai_mode" /* GoogleAiMode */]: {
|
|
288
248
|
group: "AI Tools",
|
|
289
249
|
response_format: "json",
|
|
@@ -309,11 +269,6 @@ var targetMeta = {
|
|
|
309
269
|
response_format: "json",
|
|
310
270
|
parameters: ["url", "headless", "locale", "geo", "device_type", "page_from", "parse", "session_id", "markdown", "xhr", "callback_url"]
|
|
311
271
|
},
|
|
312
|
-
["youtube_transcript" /* YoutubeTranscript */]: {
|
|
313
|
-
group: "YouTube",
|
|
314
|
-
response_format: "json",
|
|
315
|
-
parameters: ["query", "language_code", "transcript_origin", "callback_url"]
|
|
316
|
-
},
|
|
317
272
|
["amazon_product" /* AmazonProduct */]: {
|
|
318
273
|
group: "Amazon",
|
|
319
274
|
response_format: "json",
|
|
@@ -344,11 +299,6 @@ var targetMeta = {
|
|
|
344
299
|
response_format: "json",
|
|
345
300
|
parameters: ["url", "headless", "device_type", "parse", "geo", "session_id", "markdown", "xhr", "callback_url"]
|
|
346
301
|
},
|
|
347
|
-
["ecommerce" /* Ecommerce */]: {
|
|
348
|
-
group: "Other eCommerce",
|
|
349
|
-
response_format: "json",
|
|
350
|
-
parameters: ["url", "headless", "locale", "geo", "device_type", "parse", "parser_type", "callback_url"]
|
|
351
|
-
},
|
|
352
302
|
["walmart_product" /* WalmartProduct */]: {
|
|
353
303
|
group: "Walmart",
|
|
354
304
|
response_format: "html",
|
|
@@ -379,11 +329,6 @@ var targetMeta = {
|
|
|
379
329
|
response_format: "html",
|
|
380
330
|
parameters: ["url", "headless", "device_type", "xhr", "delivery_zip", "target_store_id", "callback_url"]
|
|
381
331
|
},
|
|
382
|
-
["lowes_search" /* LowesSearch */]: {
|
|
383
|
-
group: "Lowe's",
|
|
384
|
-
response_format: "json",
|
|
385
|
-
parameters: ["query", "lowes_store_id", "headless", "delivery_zip", "user_agent_type", "free_delivery", "pickup_today", "delivery_today_tomorrow", "callback_url"]
|
|
386
|
-
},
|
|
387
332
|
["universal" /* Universal */]: {
|
|
388
333
|
group: "Universal",
|
|
389
334
|
response_format: "html",
|
|
@@ -429,11 +374,6 @@ var targetMeta = {
|
|
|
429
374
|
response_format: "html",
|
|
430
375
|
parameters: ["url", "headless", "geo", "device_type", "markdown", "xhr", "callback_url"]
|
|
431
376
|
},
|
|
432
|
-
["instagram_graphql_profile" /* InstagramGraphqlProfile */]: {
|
|
433
|
-
group: "Instagram",
|
|
434
|
-
response_format: "json",
|
|
435
|
-
parameters: ["query", "callback_url"]
|
|
436
|
-
},
|
|
437
377
|
["tiktok_post" /* TiktokPost */]: {
|
|
438
378
|
group: "TikTok",
|
|
439
379
|
response_format: "html",
|
|
@@ -469,11 +409,6 @@ var targetMeta = {
|
|
|
469
409
|
response_format: "json",
|
|
470
410
|
parameters: ["url", "locale", "geo", "sort", "callback_url"]
|
|
471
411
|
},
|
|
472
|
-
["youtube_video" /* YoutubeVideo */]: {
|
|
473
|
-
group: "None",
|
|
474
|
-
response_format: "json",
|
|
475
|
-
parameters: ["query", "geo", "callback_url"]
|
|
476
|
-
},
|
|
477
412
|
["youtube_metadata" /* YoutubeMetadata */]: {
|
|
478
413
|
group: "YouTube",
|
|
479
414
|
response_format: "json",
|
|
@@ -484,11 +419,6 @@ var targetMeta = {
|
|
|
484
419
|
response_format: "json",
|
|
485
420
|
parameters: ["360", "query", "upload_date", "type", "duration", "video_sort_by", "3d", "4k", "creative_commons", "hd", "hdr", "vr180", "live", "location", "purchased", "subtitles", "callback_url"]
|
|
486
421
|
},
|
|
487
|
-
["youtube_search_max" /* YoutubeSearchMax */]: {
|
|
488
|
-
group: "YouTube",
|
|
489
|
-
response_format: "json",
|
|
490
|
-
parameters: ["360", "query", "upload_date", "type", "duration", "video_sort_by", "3d", "4k", "creative_commons", "hd", "hdr", "vr180", "live", "location", "purchased", "subtitles", "markdown", "callback_url"]
|
|
491
|
-
},
|
|
492
422
|
["youtube_subtitles" /* YoutubeSubtitles */]: {
|
|
493
423
|
group: "YouTube",
|
|
494
424
|
response_format: "json",
|
|
@@ -503,21 +433,6 @@ var targetMeta = {
|
|
|
503
433
|
|
|
504
434
|
// src/generated/request-schemas.ts
|
|
505
435
|
var requestJsonSchemas = {
|
|
506
|
-
["universal_ecommerce" /* UniversalEcommerce */]: {
|
|
507
|
-
"type": "object",
|
|
508
|
-
"properties": {
|
|
509
|
-
"target": {
|
|
510
|
-
"const": "universal_ecommerce"
|
|
511
|
-
},
|
|
512
|
-
"callback_url": {
|
|
513
|
-
"type": "string"
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
"required": [
|
|
517
|
-
"target"
|
|
518
|
-
],
|
|
519
|
-
"additionalProperties": false
|
|
520
|
-
},
|
|
521
436
|
["google_search" /* GoogleSearch */]: {
|
|
522
437
|
"type": "object",
|
|
523
438
|
"properties": {
|
|
@@ -649,150 +564,6 @@ var requestJsonSchemas = {
|
|
|
649
564
|
],
|
|
650
565
|
"additionalProperties": false
|
|
651
566
|
},
|
|
652
|
-
["google_trends_explore" /* GoogleTrendsExplore */]: {
|
|
653
|
-
"type": "object",
|
|
654
|
-
"properties": {
|
|
655
|
-
"target": {
|
|
656
|
-
"const": "google_trends_explore"
|
|
657
|
-
},
|
|
658
|
-
"query": {
|
|
659
|
-
"type": "string",
|
|
660
|
-
"maxLength": 2048
|
|
661
|
-
},
|
|
662
|
-
"geo": {
|
|
663
|
-
"type": "string"
|
|
664
|
-
},
|
|
665
|
-
"device_type": {
|
|
666
|
-
"type": "string"
|
|
667
|
-
},
|
|
668
|
-
"search_type": {
|
|
669
|
-
"type": "string"
|
|
670
|
-
},
|
|
671
|
-
"date_start": {
|
|
672
|
-
"type": "string"
|
|
673
|
-
},
|
|
674
|
-
"date_end": {
|
|
675
|
-
"type": "string"
|
|
676
|
-
},
|
|
677
|
-
"callback_url": {
|
|
678
|
-
"type": "string"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
"required": [
|
|
682
|
-
"target"
|
|
683
|
-
],
|
|
684
|
-
"additionalProperties": false
|
|
685
|
-
},
|
|
686
|
-
["google_shopping_search" /* GoogleShoppingSearch */]: {
|
|
687
|
-
"type": "object",
|
|
688
|
-
"properties": {
|
|
689
|
-
"target": {
|
|
690
|
-
"const": "google_shopping_search"
|
|
691
|
-
},
|
|
692
|
-
"query": {
|
|
693
|
-
"type": "string",
|
|
694
|
-
"maxLength": 2048
|
|
695
|
-
},
|
|
696
|
-
"headless": {
|
|
697
|
-
"type": "string",
|
|
698
|
-
"enum": [
|
|
699
|
-
"html",
|
|
700
|
-
"png"
|
|
701
|
-
]
|
|
702
|
-
},
|
|
703
|
-
"locale": {
|
|
704
|
-
"type": "string"
|
|
705
|
-
},
|
|
706
|
-
"geo": {
|
|
707
|
-
"type": "string"
|
|
708
|
-
},
|
|
709
|
-
"device_type": {
|
|
710
|
-
"type": "string"
|
|
711
|
-
},
|
|
712
|
-
"page_from": {
|
|
713
|
-
"type": "number",
|
|
714
|
-
"minimum": 0,
|
|
715
|
-
"maximum": 100
|
|
716
|
-
},
|
|
717
|
-
"google_tbs": {
|
|
718
|
-
"type": "string"
|
|
719
|
-
},
|
|
720
|
-
"parse": {
|
|
721
|
-
"type": "boolean"
|
|
722
|
-
},
|
|
723
|
-
"session_id": {
|
|
724
|
-
"type": "string"
|
|
725
|
-
},
|
|
726
|
-
"google_results_language": {
|
|
727
|
-
"type": "string"
|
|
728
|
-
},
|
|
729
|
-
"markdown": {
|
|
730
|
-
"type": "boolean"
|
|
731
|
-
},
|
|
732
|
-
"callback_url": {
|
|
733
|
-
"type": "string"
|
|
734
|
-
}
|
|
735
|
-
},
|
|
736
|
-
"required": [
|
|
737
|
-
"target"
|
|
738
|
-
],
|
|
739
|
-
"additionalProperties": false
|
|
740
|
-
},
|
|
741
|
-
["google_shopping_product" /* GoogleShoppingProduct */]: {
|
|
742
|
-
"type": "object",
|
|
743
|
-
"properties": {
|
|
744
|
-
"target": {
|
|
745
|
-
"const": "google_shopping_product"
|
|
746
|
-
},
|
|
747
|
-
"query": {
|
|
748
|
-
"type": "string",
|
|
749
|
-
"maxLength": 2048
|
|
750
|
-
},
|
|
751
|
-
"headless": {
|
|
752
|
-
"type": "string",
|
|
753
|
-
"enum": [
|
|
754
|
-
"html",
|
|
755
|
-
"png"
|
|
756
|
-
]
|
|
757
|
-
},
|
|
758
|
-
"locale": {
|
|
759
|
-
"type": "string"
|
|
760
|
-
},
|
|
761
|
-
"geo": {
|
|
762
|
-
"type": "string"
|
|
763
|
-
},
|
|
764
|
-
"device_type": {
|
|
765
|
-
"type": "string"
|
|
766
|
-
},
|
|
767
|
-
"page_from": {
|
|
768
|
-
"type": "number",
|
|
769
|
-
"minimum": 0,
|
|
770
|
-
"maximum": 100
|
|
771
|
-
},
|
|
772
|
-
"parse": {
|
|
773
|
-
"type": "boolean"
|
|
774
|
-
},
|
|
775
|
-
"session_id": {
|
|
776
|
-
"type": "string"
|
|
777
|
-
},
|
|
778
|
-
"google_results_language": {
|
|
779
|
-
"type": "string"
|
|
780
|
-
},
|
|
781
|
-
"markdown": {
|
|
782
|
-
"type": "boolean"
|
|
783
|
-
},
|
|
784
|
-
"xhr": {
|
|
785
|
-
"type": "boolean"
|
|
786
|
-
},
|
|
787
|
-
"callback_url": {
|
|
788
|
-
"type": "string"
|
|
789
|
-
}
|
|
790
|
-
},
|
|
791
|
-
"required": [
|
|
792
|
-
"target"
|
|
793
|
-
],
|
|
794
|
-
"additionalProperties": false
|
|
795
|
-
},
|
|
796
567
|
["google" /* Google */]: {
|
|
797
568
|
"type": "object",
|
|
798
569
|
"properties": {
|
|
@@ -842,95 +613,6 @@ var requestJsonSchemas = {
|
|
|
842
613
|
],
|
|
843
614
|
"additionalProperties": false
|
|
844
615
|
},
|
|
845
|
-
["google_suggest" /* GoogleSuggest */]: {
|
|
846
|
-
"type": "object",
|
|
847
|
-
"properties": {
|
|
848
|
-
"target": {
|
|
849
|
-
"const": "google_suggest"
|
|
850
|
-
},
|
|
851
|
-
"query": {
|
|
852
|
-
"type": "string",
|
|
853
|
-
"maxLength": 2048
|
|
854
|
-
},
|
|
855
|
-
"device_type": {
|
|
856
|
-
"type": "string"
|
|
857
|
-
},
|
|
858
|
-
"geo": {
|
|
859
|
-
"type": "string"
|
|
860
|
-
},
|
|
861
|
-
"locale": {
|
|
862
|
-
"type": "string"
|
|
863
|
-
},
|
|
864
|
-
"session_id": {
|
|
865
|
-
"type": "string"
|
|
866
|
-
},
|
|
867
|
-
"callback_url": {
|
|
868
|
-
"type": "string"
|
|
869
|
-
}
|
|
870
|
-
},
|
|
871
|
-
"required": [
|
|
872
|
-
"target"
|
|
873
|
-
],
|
|
874
|
-
"additionalProperties": false
|
|
875
|
-
},
|
|
876
|
-
["google_maps" /* GoogleMaps */]: {
|
|
877
|
-
"type": "object",
|
|
878
|
-
"properties": {
|
|
879
|
-
"target": {
|
|
880
|
-
"const": "google_maps"
|
|
881
|
-
},
|
|
882
|
-
"query": {
|
|
883
|
-
"type": "string",
|
|
884
|
-
"maxLength": 2048
|
|
885
|
-
},
|
|
886
|
-
"headless": {
|
|
887
|
-
"type": "string",
|
|
888
|
-
"enum": [
|
|
889
|
-
"html",
|
|
890
|
-
"png"
|
|
891
|
-
]
|
|
892
|
-
},
|
|
893
|
-
"geo": {
|
|
894
|
-
"type": "string"
|
|
895
|
-
},
|
|
896
|
-
"locale": {
|
|
897
|
-
"type": "string"
|
|
898
|
-
},
|
|
899
|
-
"page_from": {
|
|
900
|
-
"type": "number",
|
|
901
|
-
"minimum": 0,
|
|
902
|
-
"maximum": 100
|
|
903
|
-
},
|
|
904
|
-
"device_type": {
|
|
905
|
-
"type": "string"
|
|
906
|
-
},
|
|
907
|
-
"session_id": {
|
|
908
|
-
"type": "string"
|
|
909
|
-
},
|
|
910
|
-
"google_results_language": {
|
|
911
|
-
"type": "string"
|
|
912
|
-
},
|
|
913
|
-
"google_nfpr": {
|
|
914
|
-
"type": "boolean"
|
|
915
|
-
},
|
|
916
|
-
"hotel_occupancy": {
|
|
917
|
-
"type": "string"
|
|
918
|
-
},
|
|
919
|
-
"date_range": {
|
|
920
|
-
"type": "string"
|
|
921
|
-
},
|
|
922
|
-
"markdown": {
|
|
923
|
-
"type": "boolean"
|
|
924
|
-
},
|
|
925
|
-
"callback_url": {
|
|
926
|
-
"type": "string"
|
|
927
|
-
}
|
|
928
|
-
},
|
|
929
|
-
"required": [
|
|
930
|
-
"target"
|
|
931
|
-
],
|
|
932
|
-
"additionalProperties": false
|
|
933
|
-
},
|
|
934
616
|
["google_ai_mode" /* GoogleAiMode */]: {
|
|
935
617
|
"type": "object",
|
|
936
618
|
"properties": {
|
|
@@ -1184,31 +866,6 @@ var requestJsonSchemas = {
|
|
|
1184
866
|
],
|
|
1185
867
|
"additionalProperties": false
|
|
1186
868
|
},
|
|
1187
|
-
["youtube_transcript" /* YoutubeTranscript */]: {
|
|
1188
|
-
"type": "object",
|
|
1189
|
-
"properties": {
|
|
1190
|
-
"target": {
|
|
1191
|
-
"const": "youtube_transcript"
|
|
1192
|
-
},
|
|
1193
|
-
"query": {
|
|
1194
|
-
"type": "string",
|
|
1195
|
-
"maxLength": 2048
|
|
1196
|
-
},
|
|
1197
|
-
"language_code": {
|
|
1198
|
-
"type": "string"
|
|
1199
|
-
},
|
|
1200
|
-
"transcript_origin": {
|
|
1201
|
-
"type": "string"
|
|
1202
|
-
},
|
|
1203
|
-
"callback_url": {
|
|
1204
|
-
"type": "string"
|
|
1205
|
-
}
|
|
1206
|
-
},
|
|
1207
|
-
"required": [
|
|
1208
|
-
"target"
|
|
1209
|
-
],
|
|
1210
|
-
"additionalProperties": false
|
|
1211
|
-
},
|
|
1212
869
|
["amazon_product" /* AmazonProduct */]: {
|
|
1213
870
|
"type": "object",
|
|
1214
871
|
"properties": {
|
|
@@ -1496,64 +1153,23 @@ var requestJsonSchemas = {
|
|
|
1496
1153
|
"png"
|
|
1497
1154
|
]
|
|
1498
1155
|
},
|
|
1499
|
-
"device_type": {
|
|
1500
|
-
"type": "string"
|
|
1501
|
-
},
|
|
1502
|
-
"parse": {
|
|
1503
|
-
"type": "boolean"
|
|
1504
|
-
},
|
|
1505
|
-
"geo": {
|
|
1506
|
-
"type": "string"
|
|
1507
|
-
},
|
|
1508
|
-
"session_id": {
|
|
1509
|
-
"type": "string"
|
|
1510
|
-
},
|
|
1511
|
-
"markdown": {
|
|
1512
|
-
"type": "boolean"
|
|
1513
|
-
},
|
|
1514
|
-
"xhr": {
|
|
1515
|
-
"type": "boolean"
|
|
1516
|
-
},
|
|
1517
|
-
"callback_url": {
|
|
1518
|
-
"type": "string"
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
|
-
"required": [
|
|
1522
|
-
"target"
|
|
1523
|
-
],
|
|
1524
|
-
"additionalProperties": false
|
|
1525
|
-
},
|
|
1526
|
-
["ecommerce" /* Ecommerce */]: {
|
|
1527
|
-
"type": "object",
|
|
1528
|
-
"properties": {
|
|
1529
|
-
"target": {
|
|
1530
|
-
"const": "ecommerce"
|
|
1531
|
-
},
|
|
1532
|
-
"url": {
|
|
1533
|
-
"type": "string",
|
|
1534
|
-
"maxLength": 2056
|
|
1535
|
-
},
|
|
1536
|
-
"headless": {
|
|
1537
|
-
"type": "string",
|
|
1538
|
-
"enum": [
|
|
1539
|
-
"html",
|
|
1540
|
-
"png"
|
|
1541
|
-
]
|
|
1542
|
-
},
|
|
1543
|
-
"locale": {
|
|
1156
|
+
"device_type": {
|
|
1544
1157
|
"type": "string"
|
|
1545
1158
|
},
|
|
1159
|
+
"parse": {
|
|
1160
|
+
"type": "boolean"
|
|
1161
|
+
},
|
|
1546
1162
|
"geo": {
|
|
1547
1163
|
"type": "string"
|
|
1548
1164
|
},
|
|
1549
|
-
"
|
|
1165
|
+
"session_id": {
|
|
1550
1166
|
"type": "string"
|
|
1551
1167
|
},
|
|
1552
|
-
"
|
|
1168
|
+
"markdown": {
|
|
1553
1169
|
"type": "boolean"
|
|
1554
1170
|
},
|
|
1555
|
-
"
|
|
1556
|
-
"type": "
|
|
1171
|
+
"xhr": {
|
|
1172
|
+
"type": "boolean"
|
|
1557
1173
|
},
|
|
1558
1174
|
"callback_url": {
|
|
1559
1175
|
"type": "string"
|
|
@@ -1823,50 +1439,6 @@ var requestJsonSchemas = {
|
|
|
1823
1439
|
],
|
|
1824
1440
|
"additionalProperties": false
|
|
1825
1441
|
},
|
|
1826
|
-
["lowes_search" /* LowesSearch */]: {
|
|
1827
|
-
"type": "object",
|
|
1828
|
-
"properties": {
|
|
1829
|
-
"target": {
|
|
1830
|
-
"const": "lowes_search"
|
|
1831
|
-
},
|
|
1832
|
-
"query": {
|
|
1833
|
-
"type": "string",
|
|
1834
|
-
"maxLength": 2048
|
|
1835
|
-
},
|
|
1836
|
-
"lowes_store_id": {
|
|
1837
|
-
"type": "string"
|
|
1838
|
-
},
|
|
1839
|
-
"headless": {
|
|
1840
|
-
"type": "string",
|
|
1841
|
-
"enum": [
|
|
1842
|
-
"html",
|
|
1843
|
-
"png"
|
|
1844
|
-
]
|
|
1845
|
-
},
|
|
1846
|
-
"delivery_zip": {
|
|
1847
|
-
"type": "string"
|
|
1848
|
-
},
|
|
1849
|
-
"user_agent_type": {
|
|
1850
|
-
"type": "string"
|
|
1851
|
-
},
|
|
1852
|
-
"free_delivery": {
|
|
1853
|
-
"type": "boolean"
|
|
1854
|
-
},
|
|
1855
|
-
"pickup_today": {
|
|
1856
|
-
"type": "boolean"
|
|
1857
|
-
},
|
|
1858
|
-
"delivery_today_tomorrow": {
|
|
1859
|
-
"type": "boolean"
|
|
1860
|
-
},
|
|
1861
|
-
"callback_url": {
|
|
1862
|
-
"type": "string"
|
|
1863
|
-
}
|
|
1864
|
-
},
|
|
1865
|
-
"required": [
|
|
1866
|
-
"target"
|
|
1867
|
-
],
|
|
1868
|
-
"additionalProperties": false
|
|
1869
|
-
},
|
|
1870
1442
|
["universal" /* Universal */]: {
|
|
1871
1443
|
"type": "object",
|
|
1872
1444
|
"properties": {
|
|
@@ -2231,25 +1803,6 @@ var requestJsonSchemas = {
|
|
|
2231
1803
|
],
|
|
2232
1804
|
"additionalProperties": false
|
|
2233
1805
|
},
|
|
2234
|
-
["instagram_graphql_profile" /* InstagramGraphqlProfile */]: {
|
|
2235
|
-
"type": "object",
|
|
2236
|
-
"properties": {
|
|
2237
|
-
"target": {
|
|
2238
|
-
"const": "instagram_graphql_profile"
|
|
2239
|
-
},
|
|
2240
|
-
"query": {
|
|
2241
|
-
"type": "string",
|
|
2242
|
-
"maxLength": 2048
|
|
2243
|
-
},
|
|
2244
|
-
"callback_url": {
|
|
2245
|
-
"type": "string"
|
|
2246
|
-
}
|
|
2247
|
-
},
|
|
2248
|
-
"required": [
|
|
2249
|
-
"target"
|
|
2250
|
-
],
|
|
2251
|
-
"additionalProperties": false
|
|
2252
|
-
},
|
|
2253
1806
|
["tiktok_post" /* TiktokPost */]: {
|
|
2254
1807
|
"type": "object",
|
|
2255
1808
|
"properties": {
|
|
@@ -2451,28 +2004,6 @@ var requestJsonSchemas = {
|
|
|
2451
2004
|
],
|
|
2452
2005
|
"additionalProperties": false
|
|
2453
2006
|
},
|
|
2454
|
-
["youtube_video" /* YoutubeVideo */]: {
|
|
2455
|
-
"type": "object",
|
|
2456
|
-
"properties": {
|
|
2457
|
-
"target": {
|
|
2458
|
-
"const": "youtube_video"
|
|
2459
|
-
},
|
|
2460
|
-
"query": {
|
|
2461
|
-
"type": "string",
|
|
2462
|
-
"maxLength": 2048
|
|
2463
|
-
},
|
|
2464
|
-
"geo": {
|
|
2465
|
-
"type": "string"
|
|
2466
|
-
},
|
|
2467
|
-
"callback_url": {
|
|
2468
|
-
"type": "string"
|
|
2469
|
-
}
|
|
2470
|
-
},
|
|
2471
|
-
"required": [
|
|
2472
|
-
"target"
|
|
2473
|
-
],
|
|
2474
|
-
"additionalProperties": false
|
|
2475
|
-
},
|
|
2476
2007
|
["youtube_metadata" /* YoutubeMetadata */]: {
|
|
2477
2008
|
"type": "object",
|
|
2478
2009
|
"properties": {
|
|
@@ -2556,73 +2087,6 @@ var requestJsonSchemas = {
|
|
|
2556
2087
|
],
|
|
2557
2088
|
"additionalProperties": false
|
|
2558
2089
|
},
|
|
2559
|
-
["youtube_search_max" /* YoutubeSearchMax */]: {
|
|
2560
|
-
"type": "object",
|
|
2561
|
-
"properties": {
|
|
2562
|
-
"360": {
|
|
2563
|
-
"type": "boolean"
|
|
2564
|
-
},
|
|
2565
|
-
"target": {
|
|
2566
|
-
"const": "youtube_search_max"
|
|
2567
|
-
},
|
|
2568
|
-
"query": {
|
|
2569
|
-
"type": "string",
|
|
2570
|
-
"maxLength": 2048
|
|
2571
|
-
},
|
|
2572
|
-
"upload_date": {
|
|
2573
|
-
"type": "string"
|
|
2574
|
-
},
|
|
2575
|
-
"type": {
|
|
2576
|
-
"type": "string"
|
|
2577
|
-
},
|
|
2578
|
-
"duration": {
|
|
2579
|
-
"type": "string"
|
|
2580
|
-
},
|
|
2581
|
-
"video_sort_by": {
|
|
2582
|
-
"type": "string"
|
|
2583
|
-
},
|
|
2584
|
-
"3d": {
|
|
2585
|
-
"type": "boolean"
|
|
2586
|
-
},
|
|
2587
|
-
"4k": {
|
|
2588
|
-
"type": "boolean"
|
|
2589
|
-
},
|
|
2590
|
-
"creative_commons": {
|
|
2591
|
-
"type": "boolean"
|
|
2592
|
-
},
|
|
2593
|
-
"hd": {
|
|
2594
|
-
"type": "boolean"
|
|
2595
|
-
},
|
|
2596
|
-
"hdr": {
|
|
2597
|
-
"type": "boolean"
|
|
2598
|
-
},
|
|
2599
|
-
"vr180": {
|
|
2600
|
-
"type": "boolean"
|
|
2601
|
-
},
|
|
2602
|
-
"live": {
|
|
2603
|
-
"type": "boolean"
|
|
2604
|
-
},
|
|
2605
|
-
"location": {
|
|
2606
|
-
"type": "boolean"
|
|
2607
|
-
},
|
|
2608
|
-
"purchased": {
|
|
2609
|
-
"type": "boolean"
|
|
2610
|
-
},
|
|
2611
|
-
"subtitles": {
|
|
2612
|
-
"type": "boolean"
|
|
2613
|
-
},
|
|
2614
|
-
"markdown": {
|
|
2615
|
-
"type": "boolean"
|
|
2616
|
-
},
|
|
2617
|
-
"callback_url": {
|
|
2618
|
-
"type": "string"
|
|
2619
|
-
}
|
|
2620
|
-
},
|
|
2621
|
-
"required": [
|
|
2622
|
-
"target"
|
|
2623
|
-
],
|
|
2624
|
-
"additionalProperties": false
|
|
2625
|
-
},
|
|
2626
2090
|
["youtube_subtitles" /* YoutubeSubtitles */]: {
|
|
2627
2091
|
"type": "object",
|
|
2628
2092
|
"properties": {
|
|
@@ -2680,35 +2144,26 @@ var requestJsonSchemas = {
|
|
|
2680
2144
|
}
|
|
2681
2145
|
};
|
|
2682
2146
|
var requestSchemas = {
|
|
2683
|
-
["universal_ecommerce" /* UniversalEcommerce */]: z.fromJSONSchema(requestJsonSchemas["universal_ecommerce" /* UniversalEcommerce */]),
|
|
2684
2147
|
["google_search" /* GoogleSearch */]: z.fromJSONSchema(requestJsonSchemas["google_search" /* GoogleSearch */]),
|
|
2685
2148
|
["google_travel_hotels" /* GoogleTravelHotels */]: z.fromJSONSchema(requestJsonSchemas["google_travel_hotels" /* GoogleTravelHotels */]),
|
|
2686
|
-
["google_trends_explore" /* GoogleTrendsExplore */]: z.fromJSONSchema(requestJsonSchemas["google_trends_explore" /* GoogleTrendsExplore */]),
|
|
2687
|
-
["google_shopping_search" /* GoogleShoppingSearch */]: z.fromJSONSchema(requestJsonSchemas["google_shopping_search" /* GoogleShoppingSearch */]),
|
|
2688
|
-
["google_shopping_product" /* GoogleShoppingProduct */]: z.fromJSONSchema(requestJsonSchemas["google_shopping_product" /* GoogleShoppingProduct */]),
|
|
2689
2149
|
["google" /* Google */]: z.fromJSONSchema(requestJsonSchemas["google" /* Google */]),
|
|
2690
|
-
["google_suggest" /* GoogleSuggest */]: z.fromJSONSchema(requestJsonSchemas["google_suggest" /* GoogleSuggest */]),
|
|
2691
|
-
["google_maps" /* GoogleMaps */]: z.fromJSONSchema(requestJsonSchemas["google_maps" /* GoogleMaps */]),
|
|
2692
2150
|
["google_ai_mode" /* GoogleAiMode */]: z.fromJSONSchema(requestJsonSchemas["google_ai_mode" /* GoogleAiMode */]),
|
|
2693
2151
|
["google_ads" /* GoogleAds */]: z.fromJSONSchema(requestJsonSchemas["google_ads" /* GoogleAds */]),
|
|
2694
2152
|
["google_lens" /* GoogleLens */]: z.fromJSONSchema(requestJsonSchemas["google_lens" /* GoogleLens */]),
|
|
2695
2153
|
["bing_search" /* BingSearch */]: z.fromJSONSchema(requestJsonSchemas["bing_search" /* BingSearch */]),
|
|
2696
2154
|
["bing" /* Bing */]: z.fromJSONSchema(requestJsonSchemas["bing" /* Bing */]),
|
|
2697
|
-
["youtube_transcript" /* YoutubeTranscript */]: z.fromJSONSchema(requestJsonSchemas["youtube_transcript" /* YoutubeTranscript */]),
|
|
2698
2155
|
["amazon_product" /* AmazonProduct */]: z.fromJSONSchema(requestJsonSchemas["amazon_product" /* AmazonProduct */]),
|
|
2699
2156
|
["amazon_pricing" /* AmazonPricing */]: z.fromJSONSchema(requestJsonSchemas["amazon_pricing" /* AmazonPricing */]),
|
|
2700
2157
|
["amazon_search" /* AmazonSearch */]: z.fromJSONSchema(requestJsonSchemas["amazon_search" /* AmazonSearch */]),
|
|
2701
2158
|
["amazon_sellers" /* AmazonSellers */]: z.fromJSONSchema(requestJsonSchemas["amazon_sellers" /* AmazonSellers */]),
|
|
2702
2159
|
["amazon_bestsellers" /* AmazonBestsellers */]: z.fromJSONSchema(requestJsonSchemas["amazon_bestsellers" /* AmazonBestsellers */]),
|
|
2703
2160
|
["amazon" /* Amazon */]: z.fromJSONSchema(requestJsonSchemas["amazon" /* Amazon */]),
|
|
2704
|
-
["ecommerce" /* Ecommerce */]: z.fromJSONSchema(requestJsonSchemas["ecommerce" /* Ecommerce */]),
|
|
2705
2161
|
["walmart_product" /* WalmartProduct */]: z.fromJSONSchema(requestJsonSchemas["walmart_product" /* WalmartProduct */]),
|
|
2706
2162
|
["walmart_search" /* WalmartSearch */]: z.fromJSONSchema(requestJsonSchemas["walmart_search" /* WalmartSearch */]),
|
|
2707
2163
|
["walmart" /* Walmart */]: z.fromJSONSchema(requestJsonSchemas["walmart" /* Walmart */]),
|
|
2708
2164
|
["target_product" /* TargetProduct */]: z.fromJSONSchema(requestJsonSchemas["target_product" /* TargetProduct */]),
|
|
2709
2165
|
["target_search" /* TargetSearch */]: z.fromJSONSchema(requestJsonSchemas["target_search" /* TargetSearch */]),
|
|
2710
2166
|
["target" /* Target */]: z.fromJSONSchema(requestJsonSchemas["target" /* Target */]),
|
|
2711
|
-
["lowes_search" /* LowesSearch */]: z.fromJSONSchema(requestJsonSchemas["lowes_search" /* LowesSearch */]),
|
|
2712
2167
|
["universal" /* Universal */]: z.fromJSONSchema(requestJsonSchemas["universal" /* Universal */]),
|
|
2713
2168
|
["chatgpt" /* Chatgpt */]: z.fromJSONSchema(requestJsonSchemas["chatgpt" /* Chatgpt */]),
|
|
2714
2169
|
["perplexity" /* Perplexity */]: z.fromJSONSchema(requestJsonSchemas["perplexity" /* Perplexity */]),
|
|
@@ -2718,7 +2173,6 @@ var requestSchemas = {
|
|
|
2718
2173
|
["mobile" /* Mobile */]: z.fromJSONSchema(requestJsonSchemas["mobile" /* Mobile */]),
|
|
2719
2174
|
["airbnb" /* Airbnb */]: z.fromJSONSchema(requestJsonSchemas["airbnb" /* Airbnb */]),
|
|
2720
2175
|
["apple_app_store" /* AppleAppStore */]: z.fromJSONSchema(requestJsonSchemas["apple_app_store" /* AppleAppStore */]),
|
|
2721
|
-
["instagram_graphql_profile" /* InstagramGraphqlProfile */]: z.fromJSONSchema(requestJsonSchemas["instagram_graphql_profile" /* InstagramGraphqlProfile */]),
|
|
2722
2176
|
["tiktok_post" /* TiktokPost */]: z.fromJSONSchema(requestJsonSchemas["tiktok_post" /* TiktokPost */]),
|
|
2723
2177
|
["tiktok_shop_search" /* TiktokShopSearch */]: z.fromJSONSchema(requestJsonSchemas["tiktok_shop_search" /* TiktokShopSearch */]),
|
|
2724
2178
|
["tiktok_shop_product" /* TiktokShopProduct */]: z.fromJSONSchema(requestJsonSchemas["tiktok_shop_product" /* TiktokShopProduct */]),
|
|
@@ -2726,10 +2180,8 @@ var requestSchemas = {
|
|
|
2726
2180
|
["reddit_post" /* RedditPost */]: z.fromJSONSchema(requestJsonSchemas["reddit_post" /* RedditPost */]),
|
|
2727
2181
|
["reddit_subreddit" /* RedditSubreddit */]: z.fromJSONSchema(requestJsonSchemas["reddit_subreddit" /* RedditSubreddit */]),
|
|
2728
2182
|
["reddit_user" /* RedditUser */]: z.fromJSONSchema(requestJsonSchemas["reddit_user" /* RedditUser */]),
|
|
2729
|
-
["youtube_video" /* YoutubeVideo */]: z.fromJSONSchema(requestJsonSchemas["youtube_video" /* YoutubeVideo */]),
|
|
2730
2183
|
["youtube_metadata" /* YoutubeMetadata */]: z.fromJSONSchema(requestJsonSchemas["youtube_metadata" /* YoutubeMetadata */]),
|
|
2731
2184
|
["youtube_search" /* YoutubeSearch */]: z.fromJSONSchema(requestJsonSchemas["youtube_search" /* YoutubeSearch */]),
|
|
2732
|
-
["youtube_search_max" /* YoutubeSearchMax */]: z.fromJSONSchema(requestJsonSchemas["youtube_search_max" /* YoutubeSearchMax */]),
|
|
2733
2185
|
["youtube_subtitles" /* YoutubeSubtitles */]: z.fromJSONSchema(requestJsonSchemas["youtube_subtitles" /* YoutubeSubtitles */]),
|
|
2734
2186
|
["youtube_channel" /* YoutubeChannel */]: z.fromJSONSchema(requestJsonSchemas["youtube_channel" /* YoutubeChannel */])
|
|
2735
2187
|
};
|
|
@@ -2755,6 +2207,7 @@ var BundledSchema = class _BundledSchema {
|
|
|
2755
2207
|
};
|
|
2756
2208
|
|
|
2757
2209
|
// src/generated/data-api.ts
|
|
2210
|
+
var z2 = __toESM(require("zod"), 1);
|
|
2758
2211
|
var dataApiEndpoints = {
|
|
2759
2212
|
runSearch: { method: "POST", path: "/v1/search" },
|
|
2760
2213
|
mapSite: { method: "POST", path: "/v1/map" },
|
|
@@ -2764,6 +2217,237 @@ var dataApiEndpoints = {
|
|
|
2764
2217
|
getCrawlStatus: { method: "GET", path: "/v1/crawl/{id}/status" },
|
|
2765
2218
|
cancelCrawl: { method: "POST", path: "/v1/crawl/{id}/cancel" }
|
|
2766
2219
|
};
|
|
2220
|
+
var dataApiRequestJsonSchemas = {
|
|
2221
|
+
runSearch: {
|
|
2222
|
+
"type": "object",
|
|
2223
|
+
"required": [
|
|
2224
|
+
"query"
|
|
2225
|
+
],
|
|
2226
|
+
"description": "Fields other than these are dropped before the upstream call.",
|
|
2227
|
+
"properties": {
|
|
2228
|
+
"query": {
|
|
2229
|
+
"type": "string",
|
|
2230
|
+
"minLength": 1
|
|
2231
|
+
},
|
|
2232
|
+
"url": {
|
|
2233
|
+
"type": "string",
|
|
2234
|
+
"minLength": 1
|
|
2235
|
+
},
|
|
2236
|
+
"uule": {
|
|
2237
|
+
"type": "string"
|
|
2238
|
+
},
|
|
2239
|
+
"gl": {
|
|
2240
|
+
"type": "string"
|
|
2241
|
+
},
|
|
2242
|
+
"geo": {
|
|
2243
|
+
"type": "string"
|
|
2244
|
+
},
|
|
2245
|
+
"locale": {
|
|
2246
|
+
"type": "string"
|
|
2247
|
+
},
|
|
2248
|
+
"input_encoding": {
|
|
2249
|
+
"type": "string"
|
|
2250
|
+
},
|
|
2251
|
+
"page": {
|
|
2252
|
+
"type": "number",
|
|
2253
|
+
"minimum": 1,
|
|
2254
|
+
"description": "Not checked to be an integer; forwarded as given."
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
},
|
|
2258
|
+
mapSite: {
|
|
2259
|
+
"type": "object",
|
|
2260
|
+
"required": [
|
|
2261
|
+
"url"
|
|
2262
|
+
],
|
|
2263
|
+
"properties": {
|
|
2264
|
+
"url": {
|
|
2265
|
+
"type": "string",
|
|
2266
|
+
"description": "Absolute http or https URL to map."
|
|
2267
|
+
},
|
|
2268
|
+
"limit": {
|
|
2269
|
+
"type": "integer",
|
|
2270
|
+
"description": "Maximum links to return. Zero, negative or above 147700 all become 147700; nothing is rejected.",
|
|
2271
|
+
"default": 147700
|
|
2272
|
+
},
|
|
2273
|
+
"sitemap": {
|
|
2274
|
+
"type": "string",
|
|
2275
|
+
"enum": [
|
|
2276
|
+
"include",
|
|
2277
|
+
"only",
|
|
2278
|
+
"skip"
|
|
2279
|
+
],
|
|
2280
|
+
"default": "include"
|
|
2281
|
+
},
|
|
2282
|
+
"domain_filter": {
|
|
2283
|
+
"type": "string",
|
|
2284
|
+
"enum": [
|
|
2285
|
+
"domain",
|
|
2286
|
+
"subdomain",
|
|
2287
|
+
"all"
|
|
2288
|
+
],
|
|
2289
|
+
"default": "domain"
|
|
2290
|
+
},
|
|
2291
|
+
"geo": {
|
|
2292
|
+
"type": "string"
|
|
2293
|
+
},
|
|
2294
|
+
"locale": {
|
|
2295
|
+
"type": "string"
|
|
2296
|
+
},
|
|
2297
|
+
"JS_rendering": {
|
|
2298
|
+
"type": "boolean",
|
|
2299
|
+
"default": false
|
|
2300
|
+
},
|
|
2301
|
+
"follow_redirects": {
|
|
2302
|
+
"type": "boolean",
|
|
2303
|
+
"default": true
|
|
2304
|
+
},
|
|
2305
|
+
"select_paths": {
|
|
2306
|
+
"description": "Either one pattern or a list of them. Each must compile as a Go regular expression.",
|
|
2307
|
+
"oneOf": [
|
|
2308
|
+
{
|
|
2309
|
+
"type": "string"
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
"type": "array",
|
|
2313
|
+
"items": {
|
|
2314
|
+
"type": "string"
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
]
|
|
2318
|
+
},
|
|
2319
|
+
"exclude_paths": {
|
|
2320
|
+
"description": "Either one pattern or a list of them. Each must compile as a Go regular expression.",
|
|
2321
|
+
"oneOf": [
|
|
2322
|
+
{
|
|
2323
|
+
"type": "string"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"type": "array",
|
|
2327
|
+
"items": {
|
|
2328
|
+
"type": "string"
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
]
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
},
|
|
2335
|
+
startCrawl: {
|
|
2336
|
+
"type": "object",
|
|
2337
|
+
"required": [
|
|
2338
|
+
"url"
|
|
2339
|
+
],
|
|
2340
|
+
"properties": {
|
|
2341
|
+
"url": {
|
|
2342
|
+
"type": "string",
|
|
2343
|
+
"description": "An http or https URL with a host. URLs carrying credentials (user:pass@) are refused."
|
|
2344
|
+
},
|
|
2345
|
+
"limit": {
|
|
2346
|
+
"type": "integer",
|
|
2347
|
+
"minimum": 1,
|
|
2348
|
+
"maximum": 1e4,
|
|
2349
|
+
"default": 10
|
|
2350
|
+
},
|
|
2351
|
+
"max_depth": {
|
|
2352
|
+
"type": "integer",
|
|
2353
|
+
"minimum": 1,
|
|
2354
|
+
"maximum": 1e4,
|
|
2355
|
+
"default": 5
|
|
2356
|
+
},
|
|
2357
|
+
"sitemap": {
|
|
2358
|
+
"type": "string",
|
|
2359
|
+
"enum": [
|
|
2360
|
+
"include",
|
|
2361
|
+
"only",
|
|
2362
|
+
"skip"
|
|
2363
|
+
],
|
|
2364
|
+
"default": "include"
|
|
2365
|
+
},
|
|
2366
|
+
"domain_filter": {
|
|
2367
|
+
"type": "string",
|
|
2368
|
+
"enum": [
|
|
2369
|
+
"domain",
|
|
2370
|
+
"subdomain",
|
|
2371
|
+
"all"
|
|
2372
|
+
],
|
|
2373
|
+
"default": "domain"
|
|
2374
|
+
},
|
|
2375
|
+
"output": {
|
|
2376
|
+
"type": "string",
|
|
2377
|
+
"enum": [
|
|
2378
|
+
"markdown",
|
|
2379
|
+
"html"
|
|
2380
|
+
],
|
|
2381
|
+
"default": "markdown"
|
|
2382
|
+
},
|
|
2383
|
+
"geo": {
|
|
2384
|
+
"type": "string",
|
|
2385
|
+
"pattern": "^[A-Za-z][A-Za-z .'-]{0,58}[A-Za-z]$",
|
|
2386
|
+
"description": "Letters, spaces, dots, apostrophes and hyphens, 2 to 60 characters."
|
|
2387
|
+
},
|
|
2388
|
+
"locale": {
|
|
2389
|
+
"type": "string",
|
|
2390
|
+
"pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
|
|
2391
|
+
"description": "BCP 47 style, for example en or de-DE."
|
|
2392
|
+
},
|
|
2393
|
+
"follow_redirects": {
|
|
2394
|
+
"type": "boolean"
|
|
2395
|
+
},
|
|
2396
|
+
"JS_retry": {
|
|
2397
|
+
"type": "boolean"
|
|
2398
|
+
},
|
|
2399
|
+
"max_duration": {
|
|
2400
|
+
"type": "integer",
|
|
2401
|
+
"minimum": 0,
|
|
2402
|
+
"maximum": 14400,
|
|
2403
|
+
"description": "Seconds. 0 means the server default. Rejected above the server's ceiling, 4 hours by default; the ceiling is configurable per environment.",
|
|
2404
|
+
"default": 3600
|
|
2405
|
+
},
|
|
2406
|
+
"callback_url": {
|
|
2407
|
+
"type": "string",
|
|
2408
|
+
"description": "http or https URL called when the crawl settles. Internal addresses are refused."
|
|
2409
|
+
},
|
|
2410
|
+
"passthrough": {
|
|
2411
|
+
"type": "string",
|
|
2412
|
+
"maxLength": 8192,
|
|
2413
|
+
"description": "Opaque value echoed back on the callback, at most 8192 bytes. Redacted in logs."
|
|
2414
|
+
},
|
|
2415
|
+
"select_paths": {
|
|
2416
|
+
"description": "Either one pattern or a list of them. Each must compile as a Go regular expression.",
|
|
2417
|
+
"oneOf": [
|
|
2418
|
+
{
|
|
2419
|
+
"type": "string"
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
"type": "array",
|
|
2423
|
+
"items": {
|
|
2424
|
+
"type": "string"
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
]
|
|
2428
|
+
},
|
|
2429
|
+
"exclude_paths": {
|
|
2430
|
+
"description": "Either one pattern or a list of them. Each must compile as a Go regular expression.",
|
|
2431
|
+
"oneOf": [
|
|
2432
|
+
{
|
|
2433
|
+
"type": "string"
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
"type": "array",
|
|
2437
|
+
"items": {
|
|
2438
|
+
"type": "string"
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
]
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
};
|
|
2446
|
+
var dataApiRequestSchemas = {
|
|
2447
|
+
runSearch: z2.fromJSONSchema(dataApiRequestJsonSchemas.runSearch),
|
|
2448
|
+
mapSite: z2.fromJSONSchema(dataApiRequestJsonSchemas.mapSite),
|
|
2449
|
+
startCrawl: z2.fromJSONSchema(dataApiRequestJsonSchemas.startCrawl)
|
|
2450
|
+
};
|
|
2767
2451
|
|
|
2768
2452
|
// src/api/web-scraping-api.ts
|
|
2769
2453
|
var SCRAPER_API_ROUTES = {
|
|
@@ -3001,7 +2685,7 @@ var DecodoClient = class {
|
|
|
3001
2685
|
// src/schema/remote-schema.ts
|
|
3002
2686
|
var import_node_fs = require("node:fs");
|
|
3003
2687
|
var import_node_path2 = require("node:path");
|
|
3004
|
-
var
|
|
2688
|
+
var z3 = __toESM(require("zod"), 1);
|
|
3005
2689
|
|
|
3006
2690
|
// src/schema/build-target-meta.ts
|
|
3007
2691
|
var getTargetParameterKeys = (parameterSchema) => {
|
|
@@ -3159,7 +2843,7 @@ var buildRequestSchemas = (ir) => {
|
|
|
3159
2843
|
)) {
|
|
3160
2844
|
schemas.set(
|
|
3161
2845
|
targetKey,
|
|
3162
|
-
|
|
2846
|
+
z3.fromJSONSchema(
|
|
3163
2847
|
target.parameter_schema
|
|
3164
2848
|
)
|
|
3165
2849
|
);
|
|
@@ -3215,7 +2899,6 @@ var RemoteSchema = class _RemoteSchema {
|
|
|
3215
2899
|
// src/generated/parameters.ts
|
|
3216
2900
|
var parameterMeta = {
|
|
3217
2901
|
"360": { type: "boolean" },
|
|
3218
|
-
callback_url: { type: "string" },
|
|
3219
2902
|
query: { type: "string", maxLength: 2048 },
|
|
3220
2903
|
headless: { type: "string", enum: ["html", "png"] },
|
|
3221
2904
|
locale: { type: "string" },
|
|
@@ -3232,24 +2915,18 @@ var parameterMeta = {
|
|
|
3232
2915
|
xhr: { type: "boolean" },
|
|
3233
2916
|
markdown: { type: "boolean" },
|
|
3234
2917
|
page_count: { type: "number", minimum: 1, maximum: 10 },
|
|
2918
|
+
callback_url: { type: "string" },
|
|
3235
2919
|
date_range: { type: "string" },
|
|
3236
2920
|
stars: { type: "number" },
|
|
3237
2921
|
adults: { type: "number", minimum: 1, maximum: 3 },
|
|
3238
2922
|
children: { type: "number", minimum: 1, maximum: 3 },
|
|
3239
|
-
search_type: { type: "string" },
|
|
3240
|
-
date_start: { type: "string" },
|
|
3241
|
-
date_end: { type: "string" },
|
|
3242
2923
|
url: { type: "string", maxLength: 2056 },
|
|
3243
|
-
hotel_occupancy: { type: "string" },
|
|
3244
2924
|
domain: { type: "string" },
|
|
3245
|
-
language_code: { type: "string" },
|
|
3246
|
-
transcript_origin: { type: "string" },
|
|
3247
2925
|
autoselect_variant: { type: "boolean" },
|
|
3248
2926
|
currency: { type: "string" },
|
|
3249
2927
|
category: { type: "string" },
|
|
3250
2928
|
merchant: { type: "string" },
|
|
3251
2929
|
sort_by: { type: "string" },
|
|
3252
|
-
parser_type: { type: "string" },
|
|
3253
2930
|
product_id: { type: "string" },
|
|
3254
2931
|
fulfillment_type: { type: "string" },
|
|
3255
2932
|
walmart_store_id: { type: "string" },
|
|
@@ -3257,11 +2934,6 @@ var parameterMeta = {
|
|
|
3257
2934
|
store_id: { type: "string" },
|
|
3258
2935
|
delivery_type: { type: "string" },
|
|
3259
2936
|
target_store_id: { type: "string" },
|
|
3260
|
-
lowes_store_id: { type: "string" },
|
|
3261
|
-
user_agent_type: { type: "string" },
|
|
3262
|
-
free_delivery: { type: "boolean" },
|
|
3263
|
-
pickup_today: { type: "boolean" },
|
|
3264
|
-
delivery_today_tomorrow: { type: "boolean" },
|
|
3265
2937
|
payload: { type: "string" },
|
|
3266
2938
|
proxy_pool: { type: "string", enum: ["standard", "premium"] },
|
|
3267
2939
|
http_method: { type: "string" },
|
|
@@ -3273,6 +2945,7 @@ var parameterMeta = {
|
|
|
3273
2945
|
prompt: { type: "string", maxLength: 8192 },
|
|
3274
2946
|
search: { type: "boolean" },
|
|
3275
2947
|
country: { type: "string" },
|
|
2948
|
+
user_agent_type: { type: "string" },
|
|
3276
2949
|
sort: { type: "string" },
|
|
3277
2950
|
upload_date: { type: "string" },
|
|
3278
2951
|
type: { type: "string" },
|
|
@@ -3288,6 +2961,7 @@ var parameterMeta = {
|
|
|
3288
2961
|
location: { type: "boolean" },
|
|
3289
2962
|
purchased: { type: "boolean" },
|
|
3290
2963
|
subtitles: { type: "boolean" },
|
|
2964
|
+
language_code: { type: "string" },
|
|
3291
2965
|
subtitle_origin: { type: "string" },
|
|
3292
2966
|
limit: { type: "number", minimum: 0, maximum: 100 }
|
|
3293
2967
|
};
|
|
@@ -3303,7 +2977,9 @@ var parameterMeta = {
|
|
|
3303
2977
|
TimeoutError,
|
|
3304
2978
|
ValidationError,
|
|
3305
2979
|
WebScrapingApi,
|
|
2980
|
+
dataApiRequestSchemas,
|
|
3306
2981
|
parameterMeta,
|
|
2982
|
+
requestSchemas,
|
|
3307
2983
|
targetMeta,
|
|
3308
2984
|
targets
|
|
3309
2985
|
});
|