@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.
@@ -2,35 +2,26 @@
2
2
  * Scrape target discriminator (wire string values).
3
3
  */
4
4
  export declare enum Target {
5
- UniversalEcommerce = "universal_ecommerce",
6
5
  GoogleSearch = "google_search",
7
6
  GoogleTravelHotels = "google_travel_hotels",
8
- GoogleTrendsExplore = "google_trends_explore",
9
- GoogleShoppingSearch = "google_shopping_search",
10
- GoogleShoppingProduct = "google_shopping_product",
11
7
  Google = "google",
12
- GoogleSuggest = "google_suggest",
13
- GoogleMaps = "google_maps",
14
8
  GoogleAiMode = "google_ai_mode",
15
9
  GoogleAds = "google_ads",
16
10
  GoogleLens = "google_lens",
17
11
  BingSearch = "bing_search",
18
12
  Bing = "bing",
19
- YoutubeTranscript = "youtube_transcript",
20
13
  AmazonProduct = "amazon_product",
21
14
  AmazonPricing = "amazon_pricing",
22
15
  AmazonSearch = "amazon_search",
23
16
  AmazonSellers = "amazon_sellers",
24
17
  AmazonBestsellers = "amazon_bestsellers",
25
18
  Amazon = "amazon",
26
- Ecommerce = "ecommerce",
27
19
  WalmartProduct = "walmart_product",
28
20
  WalmartSearch = "walmart_search",
29
21
  Walmart = "walmart",
30
22
  TargetProduct = "target_product",
31
23
  TargetSearch = "target_search",
32
24
  Target = "target",
33
- LowesSearch = "lowes_search",
34
25
  Universal = "universal",
35
26
  Chatgpt = "chatgpt",
36
27
  Perplexity = "perplexity",
@@ -40,7 +31,6 @@ export declare enum Target {
40
31
  Mobile = "mobile",
41
32
  Airbnb = "airbnb",
42
33
  AppleAppStore = "apple_app_store",
43
- InstagramGraphqlProfile = "instagram_graphql_profile",
44
34
  TiktokPost = "tiktok_post",
45
35
  TiktokShopSearch = "tiktok_shop_search",
46
36
  TiktokShopProduct = "tiktok_shop_product",
@@ -48,19 +38,14 @@ export declare enum Target {
48
38
  RedditPost = "reddit_post",
49
39
  RedditSubreddit = "reddit_subreddit",
50
40
  RedditUser = "reddit_user",
51
- YoutubeVideo = "youtube_video",
52
41
  YoutubeMetadata = "youtube_metadata",
53
42
  YoutubeSearch = "youtube_search",
54
- YoutubeSearchMax = "youtube_search_max",
55
43
  YoutubeSubtitles = "youtube_subtitles",
56
44
  YoutubeChannel = "youtube_channel"
57
45
  }
58
46
  /** API discriminator string literals (same values as {@link Target}). */
59
47
  export type TargetString = (typeof Target)[keyof typeof Target];
60
- export declare const targets: readonly [Target.UniversalEcommerce, Target.GoogleSearch, Target.GoogleTravelHotels, Target.GoogleTrendsExplore, Target.GoogleShoppingSearch, Target.GoogleShoppingProduct, Target.Google, Target.GoogleSuggest, Target.GoogleMaps, Target.GoogleAiMode, Target.GoogleAds, Target.GoogleLens, Target.BingSearch, Target.Bing, Target.YoutubeTranscript, Target.AmazonProduct, Target.AmazonPricing, Target.AmazonSearch, Target.AmazonSellers, Target.AmazonBestsellers, Target.Amazon, Target.Ecommerce, Target.WalmartProduct, Target.WalmartSearch, Target.Walmart, Target.TargetProduct, Target.TargetSearch, Target.Target, Target.LowesSearch, Target.Universal, Target.Chatgpt, Target.Perplexity, Target.Gemini, Target.Bbb, Target.Autotrader, Target.Mobile, Target.Airbnb, Target.AppleAppStore, Target.InstagramGraphqlProfile, Target.TiktokPost, Target.TiktokShopSearch, Target.TiktokShopProduct, Target.Tiktok, Target.RedditPost, Target.RedditSubreddit, Target.RedditUser, Target.YoutubeVideo, Target.YoutubeMetadata, Target.YoutubeSearch, Target.YoutubeSearchMax, Target.YoutubeSubtitles, Target.YoutubeChannel];
61
- export interface UniversalEcommerceParams {
62
- callback_url?: string;
63
- }
48
+ export declare const targets: readonly [Target.GoogleSearch, Target.GoogleTravelHotels, Target.Google, Target.GoogleAiMode, Target.GoogleAds, Target.GoogleLens, Target.BingSearch, Target.Bing, Target.AmazonProduct, Target.AmazonPricing, Target.AmazonSearch, Target.AmazonSellers, Target.AmazonBestsellers, Target.Amazon, Target.WalmartProduct, Target.WalmartSearch, Target.Walmart, Target.TargetProduct, Target.TargetSearch, Target.Target, Target.Universal, Target.Chatgpt, Target.Perplexity, Target.Gemini, Target.Bbb, Target.Autotrader, Target.Mobile, Target.Airbnb, Target.AppleAppStore, Target.TiktokPost, Target.TiktokShopSearch, Target.TiktokShopProduct, Target.Tiktok, Target.RedditPost, Target.RedditSubreddit, Target.RedditUser, Target.YoutubeMetadata, Target.YoutubeSearch, Target.YoutubeSubtitles, Target.YoutubeChannel];
64
49
  export interface GoogleSearchParams {
65
50
  query?: string;
66
51
  headless?: 'html' | 'png';
@@ -94,43 +79,6 @@ export interface GoogleTravelHotelsParams {
94
79
  markdown?: boolean;
95
80
  callback_url?: string;
96
81
  }
97
- export interface GoogleTrendsExploreParams {
98
- query?: string;
99
- geo?: string;
100
- device_type?: string;
101
- search_type?: string;
102
- date_start?: string;
103
- date_end?: string;
104
- callback_url?: string;
105
- }
106
- export interface GoogleShoppingSearchParams {
107
- query?: string;
108
- headless?: 'html' | 'png';
109
- locale?: string;
110
- geo?: string;
111
- device_type?: string;
112
- page_from?: number;
113
- google_tbs?: string;
114
- parse?: boolean;
115
- session_id?: string;
116
- google_results_language?: string;
117
- markdown?: boolean;
118
- callback_url?: string;
119
- }
120
- export interface GoogleShoppingProductParams {
121
- query?: string;
122
- headless?: 'html' | 'png';
123
- locale?: string;
124
- geo?: string;
125
- device_type?: string;
126
- page_from?: number;
127
- parse?: boolean;
128
- session_id?: string;
129
- google_results_language?: string;
130
- markdown?: boolean;
131
- xhr?: boolean;
132
- callback_url?: string;
133
- }
134
82
  export interface GoogleParams {
135
83
  url?: string;
136
84
  headless?: 'html' | 'png';
@@ -143,29 +91,6 @@ export interface GoogleParams {
143
91
  page_count?: number;
144
92
  callback_url?: string;
145
93
  }
146
- export interface GoogleSuggestParams {
147
- query?: string;
148
- device_type?: string;
149
- geo?: string;
150
- locale?: string;
151
- session_id?: string;
152
- callback_url?: string;
153
- }
154
- export interface GoogleMapsParams {
155
- query?: string;
156
- headless?: 'html' | 'png';
157
- geo?: string;
158
- locale?: string;
159
- page_from?: number;
160
- device_type?: string;
161
- session_id?: string;
162
- google_results_language?: string;
163
- google_nfpr?: boolean;
164
- hotel_occupancy?: string;
165
- date_range?: string;
166
- markdown?: boolean;
167
- callback_url?: string;
168
- }
169
94
  export interface GoogleAiModeParams {
170
95
  query?: string;
171
96
  geo?: string;
@@ -230,12 +155,6 @@ export interface BingParams {
230
155
  xhr?: boolean;
231
156
  callback_url?: string;
232
157
  }
233
- export interface YoutubeTranscriptParams {
234
- query?: string;
235
- language_code?: string;
236
- transcript_origin?: string;
237
- callback_url?: string;
238
- }
239
158
  export interface AmazonProductParams {
240
159
  query?: string;
241
160
  headless?: 'html' | 'png';
@@ -318,16 +237,6 @@ export interface AmazonParams {
318
237
  xhr?: boolean;
319
238
  callback_url?: string;
320
239
  }
321
- export interface EcommerceParams {
322
- url?: string;
323
- headless?: 'html' | 'png';
324
- locale?: string;
325
- geo?: string;
326
- device_type?: string;
327
- parse?: boolean;
328
- parser_type?: string;
329
- callback_url?: string;
330
- }
331
240
  export interface WalmartProductParams {
332
241
  product_id?: string;
333
242
  headless?: 'html' | 'png';
@@ -393,17 +302,6 @@ export interface TargetParams {
393
302
  target_store_id?: string;
394
303
  callback_url?: string;
395
304
  }
396
- export interface LowesSearchParams {
397
- query?: string;
398
- lowes_store_id?: string;
399
- headless?: 'html' | 'png';
400
- delivery_zip?: string;
401
- user_agent_type?: string;
402
- free_delivery?: boolean;
403
- pickup_today?: boolean;
404
- delivery_today_tomorrow?: boolean;
405
- callback_url?: string;
406
- }
407
305
  export interface UniversalParams {
408
306
  url?: string;
409
307
  payload?: string;
@@ -498,10 +396,6 @@ export interface AppleAppStoreParams {
498
396
  xhr?: boolean;
499
397
  callback_url?: string;
500
398
  }
501
- export interface InstagramGraphqlProfileParams {
502
- query?: string;
503
- callback_url?: string;
504
- }
505
399
  export interface TiktokPostParams {
506
400
  url?: string;
507
401
  xhr?: boolean;
@@ -549,11 +443,6 @@ export interface RedditUserParams {
549
443
  sort?: string;
550
444
  callback_url?: string;
551
445
  }
552
- export interface YoutubeVideoParams {
553
- query?: string;
554
- geo?: string;
555
- callback_url?: string;
556
- }
557
446
  export interface YoutubeMetadataParams {
558
447
  query?: string;
559
448
  callback_url?: string;
@@ -577,26 +466,6 @@ export interface YoutubeSearchParams {
577
466
  subtitles?: boolean;
578
467
  callback_url?: string;
579
468
  }
580
- export interface YoutubeSearchMaxParams {
581
- '360'?: boolean;
582
- query?: string;
583
- upload_date?: string;
584
- type?: string;
585
- duration?: string;
586
- video_sort_by?: string;
587
- '3d'?: boolean;
588
- '4k'?: boolean;
589
- creative_commons?: boolean;
590
- hd?: boolean;
591
- hdr?: boolean;
592
- vr180?: boolean;
593
- live?: boolean;
594
- location?: boolean;
595
- purchased?: boolean;
596
- subtitles?: boolean;
597
- markdown?: boolean;
598
- callback_url?: string;
599
- }
600
469
  export interface YoutubeSubtitlesParams {
601
470
  query?: string;
602
471
  language_code?: string;
@@ -611,35 +480,26 @@ export interface YoutubeChannelParams {
611
480
  callback_url?: string;
612
481
  }
613
482
  export type TargetParamsMap = {
614
- [Target.UniversalEcommerce]: UniversalEcommerceParams;
615
483
  [Target.GoogleSearch]: GoogleSearchParams;
616
484
  [Target.GoogleTravelHotels]: GoogleTravelHotelsParams;
617
- [Target.GoogleTrendsExplore]: GoogleTrendsExploreParams;
618
- [Target.GoogleShoppingSearch]: GoogleShoppingSearchParams;
619
- [Target.GoogleShoppingProduct]: GoogleShoppingProductParams;
620
485
  [Target.Google]: GoogleParams;
621
- [Target.GoogleSuggest]: GoogleSuggestParams;
622
- [Target.GoogleMaps]: GoogleMapsParams;
623
486
  [Target.GoogleAiMode]: GoogleAiModeParams;
624
487
  [Target.GoogleAds]: GoogleAdsParams;
625
488
  [Target.GoogleLens]: GoogleLensParams;
626
489
  [Target.BingSearch]: BingSearchParams;
627
490
  [Target.Bing]: BingParams;
628
- [Target.YoutubeTranscript]: YoutubeTranscriptParams;
629
491
  [Target.AmazonProduct]: AmazonProductParams;
630
492
  [Target.AmazonPricing]: AmazonPricingParams;
631
493
  [Target.AmazonSearch]: AmazonSearchParams;
632
494
  [Target.AmazonSellers]: AmazonSellersParams;
633
495
  [Target.AmazonBestsellers]: AmazonBestsellersParams;
634
496
  [Target.Amazon]: AmazonParams;
635
- [Target.Ecommerce]: EcommerceParams;
636
497
  [Target.WalmartProduct]: WalmartProductParams;
637
498
  [Target.WalmartSearch]: WalmartSearchParams;
638
499
  [Target.Walmart]: WalmartParams;
639
500
  [Target.TargetProduct]: TargetProductParams;
640
501
  [Target.TargetSearch]: TargetSearchParams;
641
502
  [Target.Target]: TargetParams;
642
- [Target.LowesSearch]: LowesSearchParams;
643
503
  [Target.Universal]: UniversalParams;
644
504
  [Target.Chatgpt]: ChatgptParams;
645
505
  [Target.Perplexity]: PerplexityParams;
@@ -649,7 +509,6 @@ export type TargetParamsMap = {
649
509
  [Target.Mobile]: MobileParams;
650
510
  [Target.Airbnb]: AirbnbParams;
651
511
  [Target.AppleAppStore]: AppleAppStoreParams;
652
- [Target.InstagramGraphqlProfile]: InstagramGraphqlProfileParams;
653
512
  [Target.TiktokPost]: TiktokPostParams;
654
513
  [Target.TiktokShopSearch]: TiktokShopSearchParams;
655
514
  [Target.TiktokShopProduct]: TiktokShopProductParams;
@@ -657,10 +516,8 @@ export type TargetParamsMap = {
657
516
  [Target.RedditPost]: RedditPostParams;
658
517
  [Target.RedditSubreddit]: RedditSubredditParams;
659
518
  [Target.RedditUser]: RedditUserParams;
660
- [Target.YoutubeVideo]: YoutubeVideoParams;
661
519
  [Target.YoutubeMetadata]: YoutubeMetadataParams;
662
520
  [Target.YoutubeSearch]: YoutubeSearchParams;
663
- [Target.YoutubeSearchMax]: YoutubeSearchMaxParams;
664
521
  [Target.YoutubeSubtitles]: YoutubeSubtitlesParams;
665
522
  [Target.YoutubeChannel]: YoutubeChannelParams;
666
523
  };
@@ -4,35 +4,26 @@
4
4
  */
5
5
  export var Target;
6
6
  (function (Target) {
7
- Target["UniversalEcommerce"] = "universal_ecommerce";
8
7
  Target["GoogleSearch"] = "google_search";
9
8
  Target["GoogleTravelHotels"] = "google_travel_hotels";
10
- Target["GoogleTrendsExplore"] = "google_trends_explore";
11
- Target["GoogleShoppingSearch"] = "google_shopping_search";
12
- Target["GoogleShoppingProduct"] = "google_shopping_product";
13
9
  Target["Google"] = "google";
14
- Target["GoogleSuggest"] = "google_suggest";
15
- Target["GoogleMaps"] = "google_maps";
16
10
  Target["GoogleAiMode"] = "google_ai_mode";
17
11
  Target["GoogleAds"] = "google_ads";
18
12
  Target["GoogleLens"] = "google_lens";
19
13
  Target["BingSearch"] = "bing_search";
20
14
  Target["Bing"] = "bing";
21
- Target["YoutubeTranscript"] = "youtube_transcript";
22
15
  Target["AmazonProduct"] = "amazon_product";
23
16
  Target["AmazonPricing"] = "amazon_pricing";
24
17
  Target["AmazonSearch"] = "amazon_search";
25
18
  Target["AmazonSellers"] = "amazon_sellers";
26
19
  Target["AmazonBestsellers"] = "amazon_bestsellers";
27
20
  Target["Amazon"] = "amazon";
28
- Target["Ecommerce"] = "ecommerce";
29
21
  Target["WalmartProduct"] = "walmart_product";
30
22
  Target["WalmartSearch"] = "walmart_search";
31
23
  Target["Walmart"] = "walmart";
32
24
  Target["TargetProduct"] = "target_product";
33
25
  Target["TargetSearch"] = "target_search";
34
26
  Target["Target"] = "target";
35
- Target["LowesSearch"] = "lowes_search";
36
27
  Target["Universal"] = "universal";
37
28
  Target["Chatgpt"] = "chatgpt";
38
29
  Target["Perplexity"] = "perplexity";
@@ -42,7 +33,6 @@ export var Target;
42
33
  Target["Mobile"] = "mobile";
43
34
  Target["Airbnb"] = "airbnb";
44
35
  Target["AppleAppStore"] = "apple_app_store";
45
- Target["InstagramGraphqlProfile"] = "instagram_graphql_profile";
46
36
  Target["TiktokPost"] = "tiktok_post";
47
37
  Target["TiktokShopSearch"] = "tiktok_shop_search";
48
38
  Target["TiktokShopProduct"] = "tiktok_shop_product";
@@ -50,20 +40,13 @@ export var Target;
50
40
  Target["RedditPost"] = "reddit_post";
51
41
  Target["RedditSubreddit"] = "reddit_subreddit";
52
42
  Target["RedditUser"] = "reddit_user";
53
- Target["YoutubeVideo"] = "youtube_video";
54
43
  Target["YoutubeMetadata"] = "youtube_metadata";
55
44
  Target["YoutubeSearch"] = "youtube_search";
56
- Target["YoutubeSearchMax"] = "youtube_search_max";
57
45
  Target["YoutubeSubtitles"] = "youtube_subtitles";
58
46
  Target["YoutubeChannel"] = "youtube_channel";
59
47
  })(Target || (Target = {}));
60
- export const targets = [Target.UniversalEcommerce, Target.GoogleSearch, Target.GoogleTravelHotels, Target.GoogleTrendsExplore, Target.GoogleShoppingSearch, Target.GoogleShoppingProduct, Target.Google, Target.GoogleSuggest, Target.GoogleMaps, Target.GoogleAiMode, Target.GoogleAds, Target.GoogleLens, Target.BingSearch, Target.Bing, Target.YoutubeTranscript, Target.AmazonProduct, Target.AmazonPricing, Target.AmazonSearch, Target.AmazonSellers, Target.AmazonBestsellers, Target.Amazon, Target.Ecommerce, Target.WalmartProduct, Target.WalmartSearch, Target.Walmart, Target.TargetProduct, Target.TargetSearch, Target.Target, Target.LowesSearch, Target.Universal, Target.Chatgpt, Target.Perplexity, Target.Gemini, Target.Bbb, Target.Autotrader, Target.Mobile, Target.Airbnb, Target.AppleAppStore, Target.InstagramGraphqlProfile, Target.TiktokPost, Target.TiktokShopSearch, Target.TiktokShopProduct, Target.Tiktok, Target.RedditPost, Target.RedditSubreddit, Target.RedditUser, Target.YoutubeVideo, Target.YoutubeMetadata, Target.YoutubeSearch, Target.YoutubeSearchMax, Target.YoutubeSubtitles, Target.YoutubeChannel];
48
+ export const targets = [Target.GoogleSearch, Target.GoogleTravelHotels, Target.Google, Target.GoogleAiMode, Target.GoogleAds, Target.GoogleLens, Target.BingSearch, Target.Bing, Target.AmazonProduct, Target.AmazonPricing, Target.AmazonSearch, Target.AmazonSellers, Target.AmazonBestsellers, Target.Amazon, Target.WalmartProduct, Target.WalmartSearch, Target.Walmart, Target.TargetProduct, Target.TargetSearch, Target.Target, Target.Universal, Target.Chatgpt, Target.Perplexity, Target.Gemini, Target.Bbb, Target.Autotrader, Target.Mobile, Target.Airbnb, Target.AppleAppStore, Target.TiktokPost, Target.TiktokShopSearch, Target.TiktokShopProduct, Target.Tiktok, Target.RedditPost, Target.RedditSubreddit, Target.RedditUser, Target.YoutubeMetadata, Target.YoutubeSearch, Target.YoutubeSubtitles, Target.YoutubeChannel];
61
49
  export const targetMeta = {
62
- [Target.UniversalEcommerce]: {
63
- group: "None",
64
- response_format: "html",
65
- parameters: ["callback_url"],
66
- },
67
50
  [Target.GoogleSearch]: {
68
51
  group: "Google",
69
52
  response_format: "json",
@@ -74,36 +57,11 @@ export const targetMeta = {
74
57
  response_format: "html",
75
58
  parameters: ["query", "headless", "locale", "device_type", "page_from", "date_range", "stars", "adults", "children", "session_id", "markdown", "callback_url"],
76
59
  },
77
- [Target.GoogleTrendsExplore]: {
78
- group: "Google",
79
- response_format: "json",
80
- parameters: ["query", "geo", "device_type", "search_type", "date_start", "date_end", "callback_url"],
81
- },
82
- [Target.GoogleShoppingSearch]: {
83
- group: "Google",
84
- response_format: "json",
85
- parameters: ["query", "headless", "locale", "geo", "device_type", "page_from", "google_tbs", "parse", "session_id", "google_results_language", "markdown", "callback_url"],
86
- },
87
- [Target.GoogleShoppingProduct]: {
88
- group: "Google",
89
- response_format: "json",
90
- parameters: ["query", "headless", "locale", "geo", "device_type", "page_from", "parse", "session_id", "google_results_language", "markdown", "xhr", "callback_url"],
91
- },
92
60
  [Target.Google]: {
93
61
  group: "Google",
94
62
  response_format: "json",
95
63
  parameters: ["url", "headless", "locale", "device_type", "parse", "session_id", "markdown", "xhr", "page_count", "callback_url"],
96
64
  },
97
- [Target.GoogleSuggest]: {
98
- group: "Google",
99
- response_format: "json",
100
- parameters: ["query", "device_type", "geo", "locale", "session_id", "callback_url"],
101
- },
102
- [Target.GoogleMaps]: {
103
- group: "Google",
104
- response_format: "html",
105
- parameters: ["query", "headless", "geo", "locale", "page_from", "device_type", "session_id", "google_results_language", "google_nfpr", "hotel_occupancy", "date_range", "markdown", "callback_url"],
106
- },
107
65
  [Target.GoogleAiMode]: {
108
66
  group: "AI Tools",
109
67
  response_format: "json",
@@ -129,11 +87,6 @@ export const targetMeta = {
129
87
  response_format: "json",
130
88
  parameters: ["url", "headless", "locale", "geo", "device_type", "page_from", "parse", "session_id", "markdown", "xhr", "callback_url"],
131
89
  },
132
- [Target.YoutubeTranscript]: {
133
- group: "YouTube",
134
- response_format: "json",
135
- parameters: ["query", "language_code", "transcript_origin", "callback_url"],
136
- },
137
90
  [Target.AmazonProduct]: {
138
91
  group: "Amazon",
139
92
  response_format: "json",
@@ -164,11 +117,6 @@ export const targetMeta = {
164
117
  response_format: "json",
165
118
  parameters: ["url", "headless", "device_type", "parse", "geo", "session_id", "markdown", "xhr", "callback_url"],
166
119
  },
167
- [Target.Ecommerce]: {
168
- group: "Other eCommerce",
169
- response_format: "json",
170
- parameters: ["url", "headless", "locale", "geo", "device_type", "parse", "parser_type", "callback_url"],
171
- },
172
120
  [Target.WalmartProduct]: {
173
121
  group: "Walmart",
174
122
  response_format: "html",
@@ -199,11 +147,6 @@ export const targetMeta = {
199
147
  response_format: "html",
200
148
  parameters: ["url", "headless", "device_type", "xhr", "delivery_zip", "target_store_id", "callback_url"],
201
149
  },
202
- [Target.LowesSearch]: {
203
- group: "Lowe's",
204
- response_format: "json",
205
- parameters: ["query", "lowes_store_id", "headless", "delivery_zip", "user_agent_type", "free_delivery", "pickup_today", "delivery_today_tomorrow", "callback_url"],
206
- },
207
150
  [Target.Universal]: {
208
151
  group: "Universal",
209
152
  response_format: "html",
@@ -249,11 +192,6 @@ export const targetMeta = {
249
192
  response_format: "html",
250
193
  parameters: ["url", "headless", "geo", "device_type", "markdown", "xhr", "callback_url"],
251
194
  },
252
- [Target.InstagramGraphqlProfile]: {
253
- group: "Instagram",
254
- response_format: "json",
255
- parameters: ["query", "callback_url"],
256
- },
257
195
  [Target.TiktokPost]: {
258
196
  group: "TikTok",
259
197
  response_format: "html",
@@ -289,11 +227,6 @@ export const targetMeta = {
289
227
  response_format: "json",
290
228
  parameters: ["url", "locale", "geo", "sort", "callback_url"],
291
229
  },
292
- [Target.YoutubeVideo]: {
293
- group: "None",
294
- response_format: "json",
295
- parameters: ["query", "geo", "callback_url"],
296
- },
297
230
  [Target.YoutubeMetadata]: {
298
231
  group: "YouTube",
299
232
  response_format: "json",
@@ -304,11 +237,6 @@ export const targetMeta = {
304
237
  response_format: "json",
305
238
  parameters: ["360", "query", "upload_date", "type", "duration", "video_sort_by", "3d", "4k", "creative_commons", "hd", "hdr", "vr180", "live", "location", "purchased", "subtitles", "callback_url"],
306
239
  },
307
- [Target.YoutubeSearchMax]: {
308
- group: "YouTube",
309
- response_format: "json",
310
- parameters: ["360", "query", "upload_date", "type", "duration", "video_sort_by", "3d", "4k", "creative_commons", "hd", "hdr", "vr180", "live", "location", "purchased", "subtitles", "markdown", "callback_url"],
311
- },
312
240
  [Target.YoutubeSubtitles]: {
313
241
  group: "YouTube",
314
242
  response_format: "json",
@@ -7,6 +7,8 @@ export { RemoteSchema } from './schema/remote-schema.js';
7
7
  export type { DecodoSchema, RemoteSchemaLoadOptions } from './schema/types.js';
8
8
  export type { TargetString, TargetParamsMap, TargetMeta, ScrapeRequest, BatchRequest, } from './generated/targets.js';
9
9
  export { targets, targetMeta, Target, } from './generated/targets.js';
10
+ export { requestSchemas } from './generated/request-schemas.js';
11
+ export { dataApiRequestSchemas } from './generated/data-api.js';
10
12
  export { parameterMeta } from './generated/parameters.js';
11
13
  export type { ParameterMeta } from './generated/parameters.js';
12
14
  export type { SyncResponse, AsyncTaskResponse, BatchResponse, TaskMetadata, TaskResultsResponse, TaskStatus, ResultEntry, CrawlPage, CrawlPageList, CrawlResult, } from './types/responses.js';
@@ -3,5 +3,7 @@ export { WebScrapingApi } from './api/web-scraping-api.js';
3
3
  export { BundledSchema } from './schema/bundled-schema.js';
4
4
  export { RemoteSchema } from './schema/remote-schema.js';
5
5
  export { targets, targetMeta, Target, } from './generated/targets.js';
6
+ export { requestSchemas } from './generated/request-schemas.js';
7
+ export { dataApiRequestSchemas } from './generated/data-api.js';
6
8
  export { parameterMeta } from './generated/parameters.js';
7
9
  export { DecodoError, AuthenticationError, RateLimitError, ValidationError, TimeoutError, } from './errors.js';
@@ -2,7 +2,7 @@ import type { JSONSchema4 } from 'json-schema';
2
2
  import type { DecodoSchema } from './types.js';
3
3
  export declare class BundledSchema implements DecodoSchema {
4
4
  static readonly shared: BundledSchema;
5
- getRequestSchema(target: string): import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
5
+ getRequestSchema(target: string): import("zod").ZodObject<import("zod/v4/core").$ZodLooseShape, import("zod/v4/core").$strip>;
6
6
  listTargets(): string[];
7
7
  getTargetMeta(target: string): import("../index.js").TargetMeta;
8
8
  getTargetParameterSchema(target: string): JSONSchema4 | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decodo/sdk-ts",
3
- "version": "2.7.0",
3
+ "version": "3.1.0",
4
4
  "description": "Official TypeScript SDK for the Decodo APIs",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,6 +33,18 @@
33
33
  "files": [
34
34
  "build"
35
35
  ],
36
+ "scripts": {
37
+ "codegen": "tsx src/codegen/codegen.ts",
38
+ "build": "pnpm run codegen && pnpm run build:esm && pnpm run build:cjs",
39
+ "build:esm": "tsc -p tsconfig.build.json",
40
+ "build:cjs": "rm -rf build/cjs && mkdir -p build/cjs && esbuild src/index.ts --bundle --platform=node --format=cjs --external:zod --outfile=build/cjs/index.cjs && dts-bundle-generator -o build/cjs/index.d.cts --project tsconfig.build.json build/esm/index.d.ts",
41
+ "typecheck": "tsc --noEmit",
42
+ "lint": "eslint .",
43
+ "lint:fix": "eslint . --fix",
44
+ "test": "vitest run",
45
+ "test:watch": "vitest",
46
+ "prepack": "pnpm run build:esm && pnpm run build:cjs"
47
+ },
36
48
  "engines": {
37
49
  "node": ">=18.0.0"
38
50
  },
@@ -40,10 +52,12 @@
40
52
  "@eslint/js": "^9.39.1",
41
53
  "@types/json-schema": "^7.0.15",
42
54
  "@types/node": "^25.7.0",
55
+ "conventional-changelog-conventionalcommits": "^9.3.1",
43
56
  "dts-bundle-generator": "^9.5.1",
44
57
  "esbuild": "^0.28.0",
45
58
  "eslint": "^9.39.1",
46
59
  "json-schema-to-typescript": "^15.0.4",
60
+ "semantic-release": "^25.0.9",
47
61
  "tsx": "^4.19.0",
48
62
  "typescript": "^5.3.3",
49
63
  "typescript-eslint": "^8.40.0",
@@ -52,15 +66,5 @@
52
66
  "dependencies": {
53
67
  "zod": "^4"
54
68
  },
55
- "scripts": {
56
- "codegen": "tsx src/codegen/codegen.ts",
57
- "build": "pnpm run codegen && pnpm run build:esm && pnpm run build:cjs",
58
- "build:esm": "tsc -p tsconfig.build.json",
59
- "build:cjs": "rm -rf build/cjs && mkdir -p build/cjs && esbuild src/index.ts --bundle --platform=node --format=cjs --external:zod --outfile=build/cjs/index.cjs && dts-bundle-generator -o build/cjs/index.d.cts --project tsconfig.build.json build/esm/index.d.ts",
60
- "typecheck": "tsc --noEmit",
61
- "lint": "eslint .",
62
- "lint:fix": "eslint . --fix",
63
- "test": "vitest run",
64
- "test:watch": "vitest"
65
- }
66
- }
69
+ "packageManager": "pnpm@10.33.3"
70
+ }