@decodo/sdk-ts 2.7.0 → 3.0.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,21 +2,6 @@
2
2
  import * as z from 'zod';
3
3
  import { Target } from './targets.js';
4
4
  export const requestJsonSchemas = {
5
- [Target.UniversalEcommerce]: {
6
- "type": "object",
7
- "properties": {
8
- "target": {
9
- "const": "universal_ecommerce"
10
- },
11
- "callback_url": {
12
- "type": "string"
13
- }
14
- },
15
- "required": [
16
- "target"
17
- ],
18
- "additionalProperties": false
19
- },
20
5
  [Target.GoogleSearch]: {
21
6
  "type": "object",
22
7
  "properties": {
@@ -148,150 +133,6 @@ export const requestJsonSchemas = {
148
133
  ],
149
134
  "additionalProperties": false
150
135
  },
151
- [Target.GoogleTrendsExplore]: {
152
- "type": "object",
153
- "properties": {
154
- "target": {
155
- "const": "google_trends_explore"
156
- },
157
- "query": {
158
- "type": "string",
159
- "maxLength": 2048
160
- },
161
- "geo": {
162
- "type": "string"
163
- },
164
- "device_type": {
165
- "type": "string"
166
- },
167
- "search_type": {
168
- "type": "string"
169
- },
170
- "date_start": {
171
- "type": "string"
172
- },
173
- "date_end": {
174
- "type": "string"
175
- },
176
- "callback_url": {
177
- "type": "string"
178
- }
179
- },
180
- "required": [
181
- "target"
182
- ],
183
- "additionalProperties": false
184
- },
185
- [Target.GoogleShoppingSearch]: {
186
- "type": "object",
187
- "properties": {
188
- "target": {
189
- "const": "google_shopping_search"
190
- },
191
- "query": {
192
- "type": "string",
193
- "maxLength": 2048
194
- },
195
- "headless": {
196
- "type": "string",
197
- "enum": [
198
- "html",
199
- "png"
200
- ]
201
- },
202
- "locale": {
203
- "type": "string"
204
- },
205
- "geo": {
206
- "type": "string"
207
- },
208
- "device_type": {
209
- "type": "string"
210
- },
211
- "page_from": {
212
- "type": "number",
213
- "minimum": 0,
214
- "maximum": 100
215
- },
216
- "google_tbs": {
217
- "type": "string"
218
- },
219
- "parse": {
220
- "type": "boolean"
221
- },
222
- "session_id": {
223
- "type": "string"
224
- },
225
- "google_results_language": {
226
- "type": "string"
227
- },
228
- "markdown": {
229
- "type": "boolean"
230
- },
231
- "callback_url": {
232
- "type": "string"
233
- }
234
- },
235
- "required": [
236
- "target"
237
- ],
238
- "additionalProperties": false
239
- },
240
- [Target.GoogleShoppingProduct]: {
241
- "type": "object",
242
- "properties": {
243
- "target": {
244
- "const": "google_shopping_product"
245
- },
246
- "query": {
247
- "type": "string",
248
- "maxLength": 2048
249
- },
250
- "headless": {
251
- "type": "string",
252
- "enum": [
253
- "html",
254
- "png"
255
- ]
256
- },
257
- "locale": {
258
- "type": "string"
259
- },
260
- "geo": {
261
- "type": "string"
262
- },
263
- "device_type": {
264
- "type": "string"
265
- },
266
- "page_from": {
267
- "type": "number",
268
- "minimum": 0,
269
- "maximum": 100
270
- },
271
- "parse": {
272
- "type": "boolean"
273
- },
274
- "session_id": {
275
- "type": "string"
276
- },
277
- "google_results_language": {
278
- "type": "string"
279
- },
280
- "markdown": {
281
- "type": "boolean"
282
- },
283
- "xhr": {
284
- "type": "boolean"
285
- },
286
- "callback_url": {
287
- "type": "string"
288
- }
289
- },
290
- "required": [
291
- "target"
292
- ],
293
- "additionalProperties": false
294
- },
295
136
  [Target.Google]: {
296
137
  "type": "object",
297
138
  "properties": {
@@ -341,95 +182,6 @@ export const requestJsonSchemas = {
341
182
  ],
342
183
  "additionalProperties": false
343
184
  },
344
- [Target.GoogleSuggest]: {
345
- "type": "object",
346
- "properties": {
347
- "target": {
348
- "const": "google_suggest"
349
- },
350
- "query": {
351
- "type": "string",
352
- "maxLength": 2048
353
- },
354
- "device_type": {
355
- "type": "string"
356
- },
357
- "geo": {
358
- "type": "string"
359
- },
360
- "locale": {
361
- "type": "string"
362
- },
363
- "session_id": {
364
- "type": "string"
365
- },
366
- "callback_url": {
367
- "type": "string"
368
- }
369
- },
370
- "required": [
371
- "target"
372
- ],
373
- "additionalProperties": false
374
- },
375
- [Target.GoogleMaps]: {
376
- "type": "object",
377
- "properties": {
378
- "target": {
379
- "const": "google_maps"
380
- },
381
- "query": {
382
- "type": "string",
383
- "maxLength": 2048
384
- },
385
- "headless": {
386
- "type": "string",
387
- "enum": [
388
- "html",
389
- "png"
390
- ]
391
- },
392
- "geo": {
393
- "type": "string"
394
- },
395
- "locale": {
396
- "type": "string"
397
- },
398
- "page_from": {
399
- "type": "number",
400
- "minimum": 0,
401
- "maximum": 100
402
- },
403
- "device_type": {
404
- "type": "string"
405
- },
406
- "session_id": {
407
- "type": "string"
408
- },
409
- "google_results_language": {
410
- "type": "string"
411
- },
412
- "google_nfpr": {
413
- "type": "boolean"
414
- },
415
- "hotel_occupancy": {
416
- "type": "string"
417
- },
418
- "date_range": {
419
- "type": "string"
420
- },
421
- "markdown": {
422
- "type": "boolean"
423
- },
424
- "callback_url": {
425
- "type": "string"
426
- }
427
- },
428
- "required": [
429
- "target"
430
- ],
431
- "additionalProperties": false
432
- },
433
185
  [Target.GoogleAiMode]: {
434
186
  "type": "object",
435
187
  "properties": {
@@ -683,31 +435,6 @@ export const requestJsonSchemas = {
683
435
  ],
684
436
  "additionalProperties": false
685
437
  },
686
- [Target.YoutubeTranscript]: {
687
- "type": "object",
688
- "properties": {
689
- "target": {
690
- "const": "youtube_transcript"
691
- },
692
- "query": {
693
- "type": "string",
694
- "maxLength": 2048
695
- },
696
- "language_code": {
697
- "type": "string"
698
- },
699
- "transcript_origin": {
700
- "type": "string"
701
- },
702
- "callback_url": {
703
- "type": "string"
704
- }
705
- },
706
- "required": [
707
- "target"
708
- ],
709
- "additionalProperties": false
710
- },
711
438
  [Target.AmazonProduct]: {
712
439
  "type": "object",
713
440
  "properties": {
@@ -1022,47 +749,6 @@ export const requestJsonSchemas = {
1022
749
  ],
1023
750
  "additionalProperties": false
1024
751
  },
1025
- [Target.Ecommerce]: {
1026
- "type": "object",
1027
- "properties": {
1028
- "target": {
1029
- "const": "ecommerce"
1030
- },
1031
- "url": {
1032
- "type": "string",
1033
- "maxLength": 2056
1034
- },
1035
- "headless": {
1036
- "type": "string",
1037
- "enum": [
1038
- "html",
1039
- "png"
1040
- ]
1041
- },
1042
- "locale": {
1043
- "type": "string"
1044
- },
1045
- "geo": {
1046
- "type": "string"
1047
- },
1048
- "device_type": {
1049
- "type": "string"
1050
- },
1051
- "parse": {
1052
- "type": "boolean"
1053
- },
1054
- "parser_type": {
1055
- "type": "string"
1056
- },
1057
- "callback_url": {
1058
- "type": "string"
1059
- }
1060
- },
1061
- "required": [
1062
- "target"
1063
- ],
1064
- "additionalProperties": false
1065
- },
1066
752
  [Target.WalmartProduct]: {
1067
753
  "type": "object",
1068
754
  "properties": {
@@ -1322,50 +1008,6 @@ export const requestJsonSchemas = {
1322
1008
  ],
1323
1009
  "additionalProperties": false
1324
1010
  },
1325
- [Target.LowesSearch]: {
1326
- "type": "object",
1327
- "properties": {
1328
- "target": {
1329
- "const": "lowes_search"
1330
- },
1331
- "query": {
1332
- "type": "string",
1333
- "maxLength": 2048
1334
- },
1335
- "lowes_store_id": {
1336
- "type": "string"
1337
- },
1338
- "headless": {
1339
- "type": "string",
1340
- "enum": [
1341
- "html",
1342
- "png"
1343
- ]
1344
- },
1345
- "delivery_zip": {
1346
- "type": "string"
1347
- },
1348
- "user_agent_type": {
1349
- "type": "string"
1350
- },
1351
- "free_delivery": {
1352
- "type": "boolean"
1353
- },
1354
- "pickup_today": {
1355
- "type": "boolean"
1356
- },
1357
- "delivery_today_tomorrow": {
1358
- "type": "boolean"
1359
- },
1360
- "callback_url": {
1361
- "type": "string"
1362
- }
1363
- },
1364
- "required": [
1365
- "target"
1366
- ],
1367
- "additionalProperties": false
1368
- },
1369
1011
  [Target.Universal]: {
1370
1012
  "type": "object",
1371
1013
  "properties": {
@@ -1730,25 +1372,6 @@ export const requestJsonSchemas = {
1730
1372
  ],
1731
1373
  "additionalProperties": false
1732
1374
  },
1733
- [Target.InstagramGraphqlProfile]: {
1734
- "type": "object",
1735
- "properties": {
1736
- "target": {
1737
- "const": "instagram_graphql_profile"
1738
- },
1739
- "query": {
1740
- "type": "string",
1741
- "maxLength": 2048
1742
- },
1743
- "callback_url": {
1744
- "type": "string"
1745
- }
1746
- },
1747
- "required": [
1748
- "target"
1749
- ],
1750
- "additionalProperties": false
1751
- },
1752
1375
  [Target.TiktokPost]: {
1753
1376
  "type": "object",
1754
1377
  "properties": {
@@ -1950,28 +1573,6 @@ export const requestJsonSchemas = {
1950
1573
  ],
1951
1574
  "additionalProperties": false
1952
1575
  },
1953
- [Target.YoutubeVideo]: {
1954
- "type": "object",
1955
- "properties": {
1956
- "target": {
1957
- "const": "youtube_video"
1958
- },
1959
- "query": {
1960
- "type": "string",
1961
- "maxLength": 2048
1962
- },
1963
- "geo": {
1964
- "type": "string"
1965
- },
1966
- "callback_url": {
1967
- "type": "string"
1968
- }
1969
- },
1970
- "required": [
1971
- "target"
1972
- ],
1973
- "additionalProperties": false
1974
- },
1975
1576
  [Target.YoutubeMetadata]: {
1976
1577
  "type": "object",
1977
1578
  "properties": {
@@ -2055,73 +1656,6 @@ export const requestJsonSchemas = {
2055
1656
  ],
2056
1657
  "additionalProperties": false
2057
1658
  },
2058
- [Target.YoutubeSearchMax]: {
2059
- "type": "object",
2060
- "properties": {
2061
- "360": {
2062
- "type": "boolean"
2063
- },
2064
- "target": {
2065
- "const": "youtube_search_max"
2066
- },
2067
- "query": {
2068
- "type": "string",
2069
- "maxLength": 2048
2070
- },
2071
- "upload_date": {
2072
- "type": "string"
2073
- },
2074
- "type": {
2075
- "type": "string"
2076
- },
2077
- "duration": {
2078
- "type": "string"
2079
- },
2080
- "video_sort_by": {
2081
- "type": "string"
2082
- },
2083
- "3d": {
2084
- "type": "boolean"
2085
- },
2086
- "4k": {
2087
- "type": "boolean"
2088
- },
2089
- "creative_commons": {
2090
- "type": "boolean"
2091
- },
2092
- "hd": {
2093
- "type": "boolean"
2094
- },
2095
- "hdr": {
2096
- "type": "boolean"
2097
- },
2098
- "vr180": {
2099
- "type": "boolean"
2100
- },
2101
- "live": {
2102
- "type": "boolean"
2103
- },
2104
- "location": {
2105
- "type": "boolean"
2106
- },
2107
- "purchased": {
2108
- "type": "boolean"
2109
- },
2110
- "subtitles": {
2111
- "type": "boolean"
2112
- },
2113
- "markdown": {
2114
- "type": "boolean"
2115
- },
2116
- "callback_url": {
2117
- "type": "string"
2118
- }
2119
- },
2120
- "required": [
2121
- "target"
2122
- ],
2123
- "additionalProperties": false
2124
- },
2125
1659
  [Target.YoutubeSubtitles]: {
2126
1660
  "type": "object",
2127
1661
  "properties": {
@@ -2179,35 +1713,26 @@ export const requestJsonSchemas = {
2179
1713
  },
2180
1714
  };
2181
1715
  export const requestSchemas = {
2182
- [Target.UniversalEcommerce]: z.fromJSONSchema(requestJsonSchemas[Target.UniversalEcommerce]),
2183
1716
  [Target.GoogleSearch]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleSearch]),
2184
1717
  [Target.GoogleTravelHotels]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleTravelHotels]),
2185
- [Target.GoogleTrendsExplore]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleTrendsExplore]),
2186
- [Target.GoogleShoppingSearch]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleShoppingSearch]),
2187
- [Target.GoogleShoppingProduct]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleShoppingProduct]),
2188
1718
  [Target.Google]: z.fromJSONSchema(requestJsonSchemas[Target.Google]),
2189
- [Target.GoogleSuggest]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleSuggest]),
2190
- [Target.GoogleMaps]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleMaps]),
2191
1719
  [Target.GoogleAiMode]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleAiMode]),
2192
1720
  [Target.GoogleAds]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleAds]),
2193
1721
  [Target.GoogleLens]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleLens]),
2194
1722
  [Target.BingSearch]: z.fromJSONSchema(requestJsonSchemas[Target.BingSearch]),
2195
1723
  [Target.Bing]: z.fromJSONSchema(requestJsonSchemas[Target.Bing]),
2196
- [Target.YoutubeTranscript]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeTranscript]),
2197
1724
  [Target.AmazonProduct]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonProduct]),
2198
1725
  [Target.AmazonPricing]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonPricing]),
2199
1726
  [Target.AmazonSearch]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonSearch]),
2200
1727
  [Target.AmazonSellers]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonSellers]),
2201
1728
  [Target.AmazonBestsellers]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonBestsellers]),
2202
1729
  [Target.Amazon]: z.fromJSONSchema(requestJsonSchemas[Target.Amazon]),
2203
- [Target.Ecommerce]: z.fromJSONSchema(requestJsonSchemas[Target.Ecommerce]),
2204
1730
  [Target.WalmartProduct]: z.fromJSONSchema(requestJsonSchemas[Target.WalmartProduct]),
2205
1731
  [Target.WalmartSearch]: z.fromJSONSchema(requestJsonSchemas[Target.WalmartSearch]),
2206
1732
  [Target.Walmart]: z.fromJSONSchema(requestJsonSchemas[Target.Walmart]),
2207
1733
  [Target.TargetProduct]: z.fromJSONSchema(requestJsonSchemas[Target.TargetProduct]),
2208
1734
  [Target.TargetSearch]: z.fromJSONSchema(requestJsonSchemas[Target.TargetSearch]),
2209
1735
  [Target.Target]: z.fromJSONSchema(requestJsonSchemas[Target.Target]),
2210
- [Target.LowesSearch]: z.fromJSONSchema(requestJsonSchemas[Target.LowesSearch]),
2211
1736
  [Target.Universal]: z.fromJSONSchema(requestJsonSchemas[Target.Universal]),
2212
1737
  [Target.Chatgpt]: z.fromJSONSchema(requestJsonSchemas[Target.Chatgpt]),
2213
1738
  [Target.Perplexity]: z.fromJSONSchema(requestJsonSchemas[Target.Perplexity]),
@@ -2217,7 +1742,6 @@ export const requestSchemas = {
2217
1742
  [Target.Mobile]: z.fromJSONSchema(requestJsonSchemas[Target.Mobile]),
2218
1743
  [Target.Airbnb]: z.fromJSONSchema(requestJsonSchemas[Target.Airbnb]),
2219
1744
  [Target.AppleAppStore]: z.fromJSONSchema(requestJsonSchemas[Target.AppleAppStore]),
2220
- [Target.InstagramGraphqlProfile]: z.fromJSONSchema(requestJsonSchemas[Target.InstagramGraphqlProfile]),
2221
1745
  [Target.TiktokPost]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokPost]),
2222
1746
  [Target.TiktokShopSearch]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokShopSearch]),
2223
1747
  [Target.TiktokShopProduct]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokShopProduct]),
@@ -2225,10 +1749,8 @@ export const requestSchemas = {
2225
1749
  [Target.RedditPost]: z.fromJSONSchema(requestJsonSchemas[Target.RedditPost]),
2226
1750
  [Target.RedditSubreddit]: z.fromJSONSchema(requestJsonSchemas[Target.RedditSubreddit]),
2227
1751
  [Target.RedditUser]: z.fromJSONSchema(requestJsonSchemas[Target.RedditUser]),
2228
- [Target.YoutubeVideo]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeVideo]),
2229
1752
  [Target.YoutubeMetadata]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeMetadata]),
2230
1753
  [Target.YoutubeSearch]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSearch]),
2231
- [Target.YoutubeSearchMax]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSearchMax]),
2232
1754
  [Target.YoutubeSubtitles]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSubtitles]),
2233
1755
  [Target.YoutubeChannel]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeChannel]),
2234
1756
  };