@decodo/sdk-ts 2.0.0 → 2.0.1

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.
Files changed (42) hide show
  1. package/README.md +415 -17
  2. package/package.json +1 -1
  3. package/build/cjs/api/web-scraping-api.d.ts +0 -13
  4. package/build/cjs/api/web-scraping-api.js +0 -41
  5. package/build/cjs/client.d.ts +0 -11
  6. package/build/cjs/client.js +0 -34
  7. package/build/cjs/errors.d.ts +0 -18
  8. package/build/cjs/errors.js +0 -44
  9. package/build/cjs/generated/parameters.d.ts +0 -11
  10. package/build/cjs/generated/parameters.js +0 -85
  11. package/build/cjs/generated/request-schemas.d.ts +0 -2123
  12. package/build/cjs/generated/request-schemas.js +0 -2431
  13. package/build/cjs/generated/targets.d.ts +0 -735
  14. package/build/cjs/generated/targets.js +0 -343
  15. package/build/cjs/http.d.ts +0 -22
  16. package/build/cjs/http.js +0 -94
  17. package/build/cjs/index.d.ts +0 -9
  18. package/build/cjs/index.js +0 -19
  19. package/build/cjs/types/requests.d.ts +0 -1
  20. package/build/cjs/types/requests.js +0 -2
  21. package/build/cjs/types/responses.d.ts +0 -62
  22. package/build/cjs/types/responses.js +0 -2
  23. package/build/esm/api/web-scraping-api.d.ts +0 -13
  24. package/build/esm/api/web-scraping-api.js +0 -37
  25. package/build/esm/client.d.ts +0 -11
  26. package/build/esm/client.js +0 -30
  27. package/build/esm/errors.d.ts +0 -18
  28. package/build/esm/errors.js +0 -36
  29. package/build/esm/generated/parameters.d.ts +0 -11
  30. package/build/esm/generated/parameters.js +0 -82
  31. package/build/esm/generated/request-schemas.d.ts +0 -2123
  32. package/build/esm/generated/request-schemas.js +0 -2395
  33. package/build/esm/generated/targets.d.ts +0 -735
  34. package/build/esm/generated/targets.js +0 -340
  35. package/build/esm/http.d.ts +0 -22
  36. package/build/esm/http.js +0 -90
  37. package/build/esm/index.d.ts +0 -9
  38. package/build/esm/index.js +0 -5
  39. package/build/esm/types/requests.d.ts +0 -1
  40. package/build/esm/types/requests.js +0 -1
  41. package/build/esm/types/responses.d.ts +0 -62
  42. package/build/esm/types/responses.js +0 -1
@@ -1,2395 +0,0 @@
1
- // Auto-generated by src/codegen/web-scraping-api/generate-parameter-schemas.ts — do not edit
2
- import * as z from 'zod';
3
- import { Target } from './targets.js';
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
- [Target.GoogleSearch]: {
21
- "type": "object",
22
- "properties": {
23
- "target": {
24
- "const": "google_search"
25
- },
26
- "query": {
27
- "type": "string",
28
- "maxLength": 2048
29
- },
30
- "headless": {
31
- "type": "string",
32
- "enum": [
33
- "html",
34
- "png"
35
- ]
36
- },
37
- "locale": {
38
- "type": "string"
39
- },
40
- "geo": {
41
- "type": "string"
42
- },
43
- "device_type": {
44
- "type": "string"
45
- },
46
- "page_from": {
47
- "type": "number",
48
- "minimum": 0,
49
- "maximum": 100
50
- },
51
- "google_results_language": {
52
- "type": "string"
53
- },
54
- "google_tbm": {
55
- "type": "string"
56
- },
57
- "google_tbs": {
58
- "type": "string"
59
- },
60
- "parse": {
61
- "type": "boolean"
62
- },
63
- "google_nfpr": {
64
- "type": "boolean"
65
- },
66
- "google_safe_search": {
67
- "type": "boolean"
68
- },
69
- "session_id": {
70
- "type": "string"
71
- },
72
- "xhr": {
73
- "type": "boolean"
74
- },
75
- "markdown": {
76
- "type": "boolean"
77
- },
78
- "page_count": {
79
- "type": "number",
80
- "minimum": 1,
81
- "maximum": 10
82
- },
83
- "callback_url": {
84
- "type": "string"
85
- }
86
- },
87
- "required": [
88
- "target"
89
- ],
90
- "additionalProperties": false
91
- },
92
- [Target.GoogleTravelHotels]: {
93
- "type": "object",
94
- "properties": {
95
- "target": {
96
- "const": "google_travel_hotels"
97
- },
98
- "query": {
99
- "type": "string",
100
- "maxLength": 2048
101
- },
102
- "headless": {
103
- "type": "string",
104
- "enum": [
105
- "html",
106
- "png"
107
- ]
108
- },
109
- "locale": {
110
- "type": "string"
111
- },
112
- "device_type": {
113
- "type": "string"
114
- },
115
- "page_from": {
116
- "type": "number",
117
- "minimum": 0,
118
- "maximum": 100
119
- },
120
- "date_range": {
121
- "type": "string"
122
- },
123
- "stars": {
124
- "type": "number"
125
- },
126
- "adults": {
127
- "type": "number",
128
- "minimum": 1,
129
- "maximum": 3
130
- },
131
- "children": {
132
- "type": "number",
133
- "minimum": 1,
134
- "maximum": 3
135
- },
136
- "session_id": {
137
- "type": "string"
138
- },
139
- "markdown": {
140
- "type": "boolean"
141
- },
142
- "callback_url": {
143
- "type": "string"
144
- }
145
- },
146
- "required": [
147
- "target"
148
- ],
149
- "additionalProperties": false
150
- },
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
- [Target.Google]: {
296
- "type": "object",
297
- "properties": {
298
- "target": {
299
- "const": "google"
300
- },
301
- "url": {
302
- "type": "string",
303
- "maxLength": 2056
304
- },
305
- "headless": {
306
- "type": "string",
307
- "enum": [
308
- "html",
309
- "png"
310
- ]
311
- },
312
- "locale": {
313
- "type": "string"
314
- },
315
- "device_type": {
316
- "type": "string"
317
- },
318
- "parse": {
319
- "type": "boolean"
320
- },
321
- "session_id": {
322
- "type": "string"
323
- },
324
- "markdown": {
325
- "type": "boolean"
326
- },
327
- "xhr": {
328
- "type": "boolean"
329
- },
330
- "page_count": {
331
- "type": "number",
332
- "minimum": 1,
333
- "maximum": 10
334
- },
335
- "callback_url": {
336
- "type": "string"
337
- }
338
- },
339
- "required": [
340
- "target"
341
- ],
342
- "additionalProperties": false
343
- },
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
- [Target.GoogleAiMode]: {
434
- "type": "object",
435
- "properties": {
436
- "target": {
437
- "const": "google_ai_mode"
438
- },
439
- "query": {
440
- "type": "string",
441
- "maxLength": 2048
442
- },
443
- "geo": {
444
- "type": "string"
445
- },
446
- "parse": {
447
- "type": "boolean"
448
- },
449
- "device_type": {
450
- "type": "string"
451
- },
452
- "session_id": {
453
- "type": "string"
454
- },
455
- "markdown": {
456
- "type": "boolean"
457
- },
458
- "xhr": {
459
- "type": "boolean"
460
- },
461
- "callback_url": {
462
- "type": "string"
463
- }
464
- },
465
- "required": [
466
- "target"
467
- ],
468
- "additionalProperties": false
469
- },
470
- [Target.GoogleAds]: {
471
- "type": "object",
472
- "properties": {
473
- "target": {
474
- "const": "google_ads"
475
- },
476
- "query": {
477
- "type": "string",
478
- "maxLength": 2048
479
- },
480
- "headless": {
481
- "type": "string",
482
- "enum": [
483
- "html",
484
- "png"
485
- ]
486
- },
487
- "locale": {
488
- "type": "string"
489
- },
490
- "geo": {
491
- "type": "string"
492
- },
493
- "device_type": {
494
- "type": "string"
495
- },
496
- "page_from": {
497
- "type": "number",
498
- "minimum": 0,
499
- "maximum": 100
500
- },
501
- "google_results_language": {
502
- "type": "string"
503
- },
504
- "google_tbm": {
505
- "type": "string"
506
- },
507
- "google_tbs": {
508
- "type": "string"
509
- },
510
- "parse": {
511
- "type": "boolean"
512
- },
513
- "google_nfpr": {
514
- "type": "boolean"
515
- },
516
- "session_id": {
517
- "type": "string"
518
- },
519
- "markdown": {
520
- "type": "boolean"
521
- },
522
- "xhr": {
523
- "type": "boolean"
524
- },
525
- "page_count": {
526
- "type": "number",
527
- "minimum": 1,
528
- "maximum": 10
529
- },
530
- "callback_url": {
531
- "type": "string"
532
- }
533
- },
534
- "required": [
535
- "target"
536
- ],
537
- "additionalProperties": false
538
- },
539
- [Target.GoogleLens]: {
540
- "type": "object",
541
- "properties": {
542
- "target": {
543
- "const": "google_lens"
544
- },
545
- "query": {
546
- "type": "string",
547
- "maxLength": 2048
548
- },
549
- "headless": {
550
- "type": "string",
551
- "enum": [
552
- "html",
553
- "png"
554
- ]
555
- },
556
- "parse": {
557
- "type": "boolean"
558
- },
559
- "device_type": {
560
- "type": "string"
561
- },
562
- "markdown": {
563
- "type": "boolean"
564
- },
565
- "callback_url": {
566
- "type": "string"
567
- }
568
- },
569
- "required": [
570
- "target"
571
- ],
572
- "additionalProperties": false
573
- },
574
- [Target.BingSearch]: {
575
- "type": "object",
576
- "properties": {
577
- "target": {
578
- "const": "bing_search"
579
- },
580
- "query": {
581
- "type": "string",
582
- "maxLength": 2048
583
- },
584
- "headless": {
585
- "type": "string",
586
- "enum": [
587
- "html",
588
- "png"
589
- ]
590
- },
591
- "locale": {
592
- "type": "string"
593
- },
594
- "geo": {
595
- "type": "string"
596
- },
597
- "domain": {
598
- "type": "string"
599
- },
600
- "device_type": {
601
- "type": "string"
602
- },
603
- "page_from": {
604
- "type": "number",
605
- "minimum": 0,
606
- "maximum": 100
607
- },
608
- "parse": {
609
- "type": "boolean"
610
- },
611
- "page_count": {
612
- "type": "number",
613
- "minimum": 1,
614
- "maximum": 10
615
- },
616
- "session_id": {
617
- "type": "string"
618
- },
619
- "markdown": {
620
- "type": "boolean"
621
- },
622
- "xhr": {
623
- "type": "boolean"
624
- },
625
- "callback_url": {
626
- "type": "string"
627
- }
628
- },
629
- "required": [
630
- "target"
631
- ],
632
- "additionalProperties": false
633
- },
634
- [Target.Bing]: {
635
- "type": "object",
636
- "properties": {
637
- "target": {
638
- "const": "bing"
639
- },
640
- "url": {
641
- "type": "string",
642
- "maxLength": 2056
643
- },
644
- "headless": {
645
- "type": "string",
646
- "enum": [
647
- "html",
648
- "png"
649
- ]
650
- },
651
- "locale": {
652
- "type": "string"
653
- },
654
- "geo": {
655
- "type": "string"
656
- },
657
- "device_type": {
658
- "type": "string"
659
- },
660
- "page_from": {
661
- "type": "number",
662
- "minimum": 0,
663
- "maximum": 100
664
- },
665
- "parse": {
666
- "type": "boolean"
667
- },
668
- "session_id": {
669
- "type": "string"
670
- },
671
- "markdown": {
672
- "type": "boolean"
673
- },
674
- "xhr": {
675
- "type": "boolean"
676
- },
677
- "callback_url": {
678
- "type": "string"
679
- }
680
- },
681
- "required": [
682
- "target"
683
- ],
684
- "additionalProperties": false
685
- },
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
- [Target.AmazonProduct]: {
712
- "type": "object",
713
- "properties": {
714
- "target": {
715
- "const": "amazon_product"
716
- },
717
- "query": {
718
- "type": "string",
719
- "maxLength": 2048
720
- },
721
- "headless": {
722
- "type": "string",
723
- "enum": [
724
- "html",
725
- "png"
726
- ]
727
- },
728
- "domain": {
729
- "type": "string"
730
- },
731
- "device_type": {
732
- "type": "string"
733
- },
734
- "parse": {
735
- "type": "boolean"
736
- },
737
- "autoselect_variant": {
738
- "type": "boolean"
739
- },
740
- "geo": {
741
- "type": "string"
742
- },
743
- "session_id": {
744
- "type": "string"
745
- },
746
- "currency": {
747
- "type": "string"
748
- },
749
- "markdown": {
750
- "type": "boolean"
751
- },
752
- "xhr": {
753
- "type": "boolean"
754
- },
755
- "callback_url": {
756
- "type": "string"
757
- }
758
- },
759
- "required": [
760
- "target"
761
- ],
762
- "additionalProperties": false
763
- },
764
- [Target.AmazonPricing]: {
765
- "type": "object",
766
- "properties": {
767
- "target": {
768
- "const": "amazon_pricing"
769
- },
770
- "query": {
771
- "type": "string",
772
- "maxLength": 2048
773
- },
774
- "headless": {
775
- "type": "string",
776
- "enum": [
777
- "html",
778
- "png"
779
- ]
780
- },
781
- "domain": {
782
- "type": "string"
783
- },
784
- "device_type": {
785
- "type": "string"
786
- },
787
- "page_from": {
788
- "type": "number",
789
- "minimum": 0,
790
- "maximum": 100
791
- },
792
- "parse": {
793
- "type": "boolean"
794
- },
795
- "geo": {
796
- "type": "string"
797
- },
798
- "session_id": {
799
- "type": "string"
800
- },
801
- "currency": {
802
- "type": "string"
803
- },
804
- "markdown": {
805
- "type": "boolean"
806
- },
807
- "xhr": {
808
- "type": "boolean"
809
- },
810
- "callback_url": {
811
- "type": "string"
812
- }
813
- },
814
- "required": [
815
- "target"
816
- ],
817
- "additionalProperties": false
818
- },
819
- [Target.AmazonSearch]: {
820
- "type": "object",
821
- "properties": {
822
- "target": {
823
- "const": "amazon_search"
824
- },
825
- "query": {
826
- "type": "string",
827
- "maxLength": 2048
828
- },
829
- "headless": {
830
- "type": "string",
831
- "enum": [
832
- "html",
833
- "png"
834
- ]
835
- },
836
- "domain": {
837
- "type": "string"
838
- },
839
- "device_type": {
840
- "type": "string"
841
- },
842
- "page_from": {
843
- "type": "number",
844
- "minimum": 0,
845
- "maximum": 100
846
- },
847
- "category": {
848
- "type": "string"
849
- },
850
- "merchant": {
851
- "type": "string"
852
- },
853
- "parse": {
854
- "type": "boolean"
855
- },
856
- "geo": {
857
- "type": "string"
858
- },
859
- "session_id": {
860
- "type": "string"
861
- },
862
- "sort_by": {
863
- "type": "string"
864
- },
865
- "currency": {
866
- "type": "string"
867
- },
868
- "markdown": {
869
- "type": "boolean"
870
- },
871
- "xhr": {
872
- "type": "boolean"
873
- },
874
- "callback_url": {
875
- "type": "string"
876
- }
877
- },
878
- "required": [
879
- "target"
880
- ],
881
- "additionalProperties": false
882
- },
883
- [Target.AmazonSellers]: {
884
- "type": "object",
885
- "properties": {
886
- "target": {
887
- "const": "amazon_sellers"
888
- },
889
- "query": {
890
- "type": "string",
891
- "maxLength": 2048
892
- },
893
- "headless": {
894
- "type": "string",
895
- "enum": [
896
- "html",
897
- "png"
898
- ]
899
- },
900
- "locale": {
901
- "type": "string"
902
- },
903
- "domain": {
904
- "type": "string"
905
- },
906
- "device_type": {
907
- "type": "string"
908
- },
909
- "geo": {
910
- "type": "string"
911
- },
912
- "parse": {
913
- "type": "boolean"
914
- },
915
- "markdown": {
916
- "type": "boolean"
917
- },
918
- "xhr": {
919
- "type": "boolean"
920
- },
921
- "callback_url": {
922
- "type": "string"
923
- }
924
- },
925
- "required": [
926
- "target"
927
- ],
928
- "additionalProperties": false
929
- },
930
- [Target.AmazonBestsellers]: {
931
- "type": "object",
932
- "properties": {
933
- "target": {
934
- "const": "amazon_bestsellers"
935
- },
936
- "query": {
937
- "type": "string",
938
- "maxLength": 2048
939
- },
940
- "domain": {
941
- "type": "string"
942
- },
943
- "device_type": {
944
- "type": "string"
945
- },
946
- "geo": {
947
- "type": "string"
948
- },
949
- "page_from": {
950
- "type": "number",
951
- "minimum": 0,
952
- "maximum": 100
953
- },
954
- "category": {
955
- "type": "string"
956
- },
957
- "parse": {
958
- "type": "boolean"
959
- },
960
- "session_id": {
961
- "type": "string"
962
- },
963
- "currency": {
964
- "type": "string"
965
- },
966
- "markdown": {
967
- "type": "boolean"
968
- },
969
- "xhr": {
970
- "type": "boolean"
971
- },
972
- "callback_url": {
973
- "type": "string"
974
- }
975
- },
976
- "required": [
977
- "target"
978
- ],
979
- "additionalProperties": false
980
- },
981
- [Target.Amazon]: {
982
- "type": "object",
983
- "properties": {
984
- "target": {
985
- "const": "amazon"
986
- },
987
- "url": {
988
- "type": "string",
989
- "maxLength": 2056
990
- },
991
- "headless": {
992
- "type": "string",
993
- "enum": [
994
- "html",
995
- "png"
996
- ]
997
- },
998
- "device_type": {
999
- "type": "string"
1000
- },
1001
- "parse": {
1002
- "type": "boolean"
1003
- },
1004
- "geo": {
1005
- "type": "string"
1006
- },
1007
- "session_id": {
1008
- "type": "string"
1009
- },
1010
- "markdown": {
1011
- "type": "boolean"
1012
- },
1013
- "xhr": {
1014
- "type": "boolean"
1015
- },
1016
- "callback_url": {
1017
- "type": "string"
1018
- }
1019
- },
1020
- "required": [
1021
- "target"
1022
- ],
1023
- "additionalProperties": false
1024
- },
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
- [Target.EcommerceCore]: {
1067
- "type": "object",
1068
- "properties": {
1069
- "target": {
1070
- "const": "ecommerce_core"
1071
- },
1072
- "url": {
1073
- "type": "string",
1074
- "maxLength": 2056
1075
- },
1076
- "payload": {
1077
- "type": "string"
1078
- },
1079
- "geo": {
1080
- "type": "string"
1081
- },
1082
- "http_method": {
1083
- "type": "string"
1084
- },
1085
- "successful_status_codes": {
1086
- "type": "array",
1087
- "items": {
1088
- "type": "number"
1089
- }
1090
- },
1091
- "callback_url": {
1092
- "type": "string"
1093
- }
1094
- },
1095
- "required": [
1096
- "target"
1097
- ],
1098
- "additionalProperties": false
1099
- },
1100
- [Target.WalmartProduct]: {
1101
- "type": "object",
1102
- "properties": {
1103
- "target": {
1104
- "const": "walmart_product"
1105
- },
1106
- "product_id": {
1107
- "type": "string"
1108
- },
1109
- "headless": {
1110
- "type": "string",
1111
- "enum": [
1112
- "html",
1113
- "png"
1114
- ]
1115
- },
1116
- "parse": {
1117
- "type": "boolean"
1118
- },
1119
- "xhr": {
1120
- "type": "boolean"
1121
- },
1122
- "markdown": {
1123
- "type": "boolean"
1124
- },
1125
- "fulfillment_type": {
1126
- "type": "string"
1127
- },
1128
- "walmart_store_id": {
1129
- "type": "string"
1130
- },
1131
- "delivery_zip": {
1132
- "type": "string"
1133
- },
1134
- "callback_url": {
1135
- "type": "string"
1136
- }
1137
- },
1138
- "required": [
1139
- "target"
1140
- ],
1141
- "additionalProperties": false
1142
- },
1143
- [Target.WalmartSearch]: {
1144
- "type": "object",
1145
- "properties": {
1146
- "target": {
1147
- "const": "walmart_search"
1148
- },
1149
- "query": {
1150
- "type": "string",
1151
- "maxLength": 2048
1152
- },
1153
- "headless": {
1154
- "type": "string",
1155
- "enum": [
1156
- "html",
1157
- "png"
1158
- ]
1159
- },
1160
- "parse": {
1161
- "type": "boolean"
1162
- },
1163
- "markdown": {
1164
- "type": "boolean"
1165
- },
1166
- "fulfillment_type": {
1167
- "type": "string"
1168
- },
1169
- "walmart_store_id": {
1170
- "type": "string"
1171
- },
1172
- "delivery_zip": {
1173
- "type": "string"
1174
- },
1175
- "callback_url": {
1176
- "type": "string"
1177
- }
1178
- },
1179
- "required": [
1180
- "target"
1181
- ],
1182
- "additionalProperties": false
1183
- },
1184
- [Target.Walmart]: {
1185
- "type": "object",
1186
- "properties": {
1187
- "target": {
1188
- "const": "walmart"
1189
- },
1190
- "url": {
1191
- "type": "string",
1192
- "maxLength": 2056
1193
- },
1194
- "headless": {
1195
- "type": "string",
1196
- "enum": [
1197
- "html",
1198
- "png"
1199
- ]
1200
- },
1201
- "locale": {
1202
- "type": "string"
1203
- },
1204
- "geo": {
1205
- "type": "string"
1206
- },
1207
- "device_type": {
1208
- "type": "string"
1209
- },
1210
- "store_id": {
1211
- "type": "string"
1212
- },
1213
- "markdown": {
1214
- "type": "boolean"
1215
- },
1216
- "xhr": {
1217
- "type": "boolean"
1218
- },
1219
- "callback_url": {
1220
- "type": "string"
1221
- }
1222
- },
1223
- "required": [
1224
- "target"
1225
- ],
1226
- "additionalProperties": false
1227
- },
1228
- [Target.TargetProduct]: {
1229
- "type": "object",
1230
- "properties": {
1231
- "target": {
1232
- "const": "target_product"
1233
- },
1234
- "product_id": {
1235
- "type": "string"
1236
- },
1237
- "headless": {
1238
- "type": "string",
1239
- "enum": [
1240
- "html",
1241
- "png"
1242
- ]
1243
- },
1244
- "parse": {
1245
- "type": "boolean"
1246
- },
1247
- "device_type": {
1248
- "type": "string"
1249
- },
1250
- "markdown": {
1251
- "type": "boolean"
1252
- },
1253
- "xhr": {
1254
- "type": "boolean"
1255
- },
1256
- "delivery_type": {
1257
- "type": "string"
1258
- },
1259
- "target_store_id": {
1260
- "type": "string"
1261
- },
1262
- "delivery_zip": {
1263
- "type": "string"
1264
- },
1265
- "callback_url": {
1266
- "type": "string"
1267
- }
1268
- },
1269
- "required": [
1270
- "target"
1271
- ],
1272
- "additionalProperties": false
1273
- },
1274
- [Target.TargetSearch]: {
1275
- "type": "object",
1276
- "properties": {
1277
- "target": {
1278
- "const": "target_search"
1279
- },
1280
- "query": {
1281
- "type": "string",
1282
- "maxLength": 2048
1283
- },
1284
- "headless": {
1285
- "type": "string",
1286
- "enum": [
1287
- "html",
1288
- "png"
1289
- ]
1290
- },
1291
- "parse": {
1292
- "type": "boolean"
1293
- },
1294
- "device_type": {
1295
- "type": "string"
1296
- },
1297
- "delivery_type": {
1298
- "type": "string"
1299
- },
1300
- "target_store_id": {
1301
- "type": "string"
1302
- },
1303
- "delivery_zip": {
1304
- "type": "string"
1305
- },
1306
- "xhr": {
1307
- "type": "boolean"
1308
- },
1309
- "markdown": {
1310
- "type": "boolean"
1311
- },
1312
- "callback_url": {
1313
- "type": "string"
1314
- }
1315
- },
1316
- "required": [
1317
- "target"
1318
- ],
1319
- "additionalProperties": false
1320
- },
1321
- [Target.Target]: {
1322
- "type": "object",
1323
- "properties": {
1324
- "target": {
1325
- "const": "target"
1326
- },
1327
- "url": {
1328
- "type": "string",
1329
- "maxLength": 2056
1330
- },
1331
- "headless": {
1332
- "type": "string",
1333
- "enum": [
1334
- "html",
1335
- "png"
1336
- ]
1337
- },
1338
- "device_type": {
1339
- "type": "string"
1340
- },
1341
- "xhr": {
1342
- "type": "boolean"
1343
- },
1344
- "delivery_zip": {
1345
- "type": "string"
1346
- },
1347
- "target_store_id": {
1348
- "type": "string"
1349
- },
1350
- "callback_url": {
1351
- "type": "string"
1352
- }
1353
- },
1354
- "required": [
1355
- "target"
1356
- ],
1357
- "additionalProperties": false
1358
- },
1359
- [Target.LowesSearch]: {
1360
- "type": "object",
1361
- "properties": {
1362
- "target": {
1363
- "const": "lowes_search"
1364
- },
1365
- "query": {
1366
- "type": "string",
1367
- "maxLength": 2048
1368
- },
1369
- "lowes_store_id": {
1370
- "type": "string"
1371
- },
1372
- "headless": {
1373
- "type": "string",
1374
- "enum": [
1375
- "html",
1376
- "png"
1377
- ]
1378
- },
1379
- "delivery_zip": {
1380
- "type": "string"
1381
- },
1382
- "user_agent_type": {
1383
- "type": "string"
1384
- },
1385
- "free_delivery": {
1386
- "type": "boolean"
1387
- },
1388
- "pickup_today": {
1389
- "type": "boolean"
1390
- },
1391
- "delivery_today_tomorrow": {
1392
- "type": "boolean"
1393
- },
1394
- "callback_url": {
1395
- "type": "string"
1396
- }
1397
- },
1398
- "required": [
1399
- "target"
1400
- ],
1401
- "additionalProperties": false
1402
- },
1403
- [Target.Universal]: {
1404
- "type": "object",
1405
- "properties": {
1406
- "target": {
1407
- "const": "universal"
1408
- },
1409
- "url": {
1410
- "type": "string",
1411
- "maxLength": 2056
1412
- },
1413
- "payload": {
1414
- "type": "string"
1415
- },
1416
- "proxy_pool": {
1417
- "type": "string",
1418
- "enum": [
1419
- "standard",
1420
- "premium"
1421
- ]
1422
- },
1423
- "http_method": {
1424
- "type": "string"
1425
- },
1426
- "headless": {
1427
- "type": "string",
1428
- "enum": [
1429
- "html",
1430
- "png"
1431
- ]
1432
- },
1433
- "geo": {
1434
- "type": "string"
1435
- },
1436
- "locale": {
1437
- "type": "string"
1438
- },
1439
- "device_type": {
1440
- "type": "string"
1441
- },
1442
- "session_id": {
1443
- "type": "string"
1444
- },
1445
- "successful_status_codes": {
1446
- "type": "array",
1447
- "items": {
1448
- "type": "number"
1449
- }
1450
- },
1451
- "headers": {
1452
- "type": "object"
1453
- },
1454
- "cookies": {
1455
- "type": "object"
1456
- },
1457
- "force_headers": {
1458
- "type": "boolean"
1459
- },
1460
- "force_cookies": {
1461
- "type": "boolean"
1462
- },
1463
- "xhr": {
1464
- "type": "boolean"
1465
- },
1466
- "markdown": {
1467
- "type": "boolean"
1468
- },
1469
- "callback_url": {
1470
- "type": "string"
1471
- }
1472
- },
1473
- "required": [
1474
- "target"
1475
- ],
1476
- "additionalProperties": false
1477
- },
1478
- [Target.UniversalCore]: {
1479
- "type": "object",
1480
- "properties": {
1481
- "target": {
1482
- "const": "universal_core"
1483
- },
1484
- "url": {
1485
- "type": "string",
1486
- "maxLength": 2056
1487
- },
1488
- "payload": {
1489
- "type": "string"
1490
- },
1491
- "geo": {
1492
- "type": "string"
1493
- },
1494
- "http_method": {
1495
- "type": "string"
1496
- },
1497
- "successful_status_codes": {
1498
- "type": "array",
1499
- "items": {
1500
- "type": "number"
1501
- }
1502
- },
1503
- "callback_url": {
1504
- "type": "string"
1505
- }
1506
- },
1507
- "required": [
1508
- "target"
1509
- ],
1510
- "additionalProperties": false
1511
- },
1512
- [Target.Chatgpt]: {
1513
- "type": "object",
1514
- "properties": {
1515
- "target": {
1516
- "const": "chatgpt"
1517
- },
1518
- "prompt": {
1519
- "type": "string",
1520
- "maxLength": 8192
1521
- },
1522
- "search": {
1523
- "type": "boolean"
1524
- },
1525
- "parse": {
1526
- "type": "boolean"
1527
- },
1528
- "geo": {
1529
- "type": "string"
1530
- },
1531
- "device_type": {
1532
- "type": "string"
1533
- },
1534
- "markdown": {
1535
- "type": "boolean"
1536
- },
1537
- "xhr": {
1538
- "type": "boolean"
1539
- },
1540
- "callback_url": {
1541
- "type": "string"
1542
- }
1543
- },
1544
- "required": [
1545
- "target"
1546
- ],
1547
- "additionalProperties": false
1548
- },
1549
- [Target.Perplexity]: {
1550
- "type": "object",
1551
- "properties": {
1552
- "target": {
1553
- "const": "perplexity"
1554
- },
1555
- "prompt": {
1556
- "type": "string",
1557
- "maxLength": 8192
1558
- },
1559
- "parse": {
1560
- "type": "boolean"
1561
- },
1562
- "geo": {
1563
- "type": "string"
1564
- },
1565
- "device_type": {
1566
- "type": "string"
1567
- },
1568
- "markdown": {
1569
- "type": "boolean"
1570
- },
1571
- "xhr": {
1572
- "type": "boolean"
1573
- },
1574
- "callback_url": {
1575
- "type": "string"
1576
- }
1577
- },
1578
- "required": [
1579
- "target"
1580
- ],
1581
- "additionalProperties": false
1582
- },
1583
- [Target.Bbb]: {
1584
- "type": "object",
1585
- "properties": {
1586
- "target": {
1587
- "const": "bbb"
1588
- },
1589
- "url": {
1590
- "type": "string",
1591
- "maxLength": 2056
1592
- },
1593
- "headless": {
1594
- "type": "string",
1595
- "enum": [
1596
- "html",
1597
- "png"
1598
- ]
1599
- },
1600
- "geo": {
1601
- "type": "string"
1602
- },
1603
- "device_type": {
1604
- "type": "string"
1605
- },
1606
- "markdown": {
1607
- "type": "boolean"
1608
- },
1609
- "xhr": {
1610
- "type": "boolean"
1611
- },
1612
- "callback_url": {
1613
- "type": "string"
1614
- }
1615
- },
1616
- "required": [
1617
- "target"
1618
- ],
1619
- "additionalProperties": false
1620
- },
1621
- [Target.Autotrader]: {
1622
- "type": "object",
1623
- "properties": {
1624
- "target": {
1625
- "const": "autotrader"
1626
- },
1627
- "url": {
1628
- "type": "string",
1629
- "maxLength": 2056
1630
- },
1631
- "headless": {
1632
- "type": "string",
1633
- "enum": [
1634
- "html",
1635
- "png"
1636
- ]
1637
- },
1638
- "geo": {
1639
- "type": "string"
1640
- },
1641
- "device_type": {
1642
- "type": "string"
1643
- },
1644
- "markdown": {
1645
- "type": "boolean"
1646
- },
1647
- "xhr": {
1648
- "type": "boolean"
1649
- },
1650
- "callback_url": {
1651
- "type": "string"
1652
- }
1653
- },
1654
- "required": [
1655
- "target"
1656
- ],
1657
- "additionalProperties": false
1658
- },
1659
- [Target.Mobile]: {
1660
- "type": "object",
1661
- "properties": {
1662
- "target": {
1663
- "const": "mobile"
1664
- },
1665
- "url": {
1666
- "type": "string",
1667
- "maxLength": 2056
1668
- },
1669
- "headless": {
1670
- "type": "string",
1671
- "enum": [
1672
- "html",
1673
- "png"
1674
- ]
1675
- },
1676
- "geo": {
1677
- "type": "string"
1678
- },
1679
- "device_type": {
1680
- "type": "string"
1681
- },
1682
- "markdown": {
1683
- "type": "boolean"
1684
- },
1685
- "xhr": {
1686
- "type": "boolean"
1687
- },
1688
- "callback_url": {
1689
- "type": "string"
1690
- }
1691
- },
1692
- "required": [
1693
- "target"
1694
- ],
1695
- "additionalProperties": false
1696
- },
1697
- [Target.Airbnb]: {
1698
- "type": "object",
1699
- "properties": {
1700
- "target": {
1701
- "const": "airbnb"
1702
- },
1703
- "url": {
1704
- "type": "string",
1705
- "maxLength": 2056
1706
- },
1707
- "headless": {
1708
- "type": "string",
1709
- "enum": [
1710
- "html",
1711
- "png"
1712
- ]
1713
- },
1714
- "geo": {
1715
- "type": "string"
1716
- },
1717
- "device_type": {
1718
- "type": "string"
1719
- },
1720
- "markdown": {
1721
- "type": "boolean"
1722
- },
1723
- "xhr": {
1724
- "type": "boolean"
1725
- },
1726
- "callback_url": {
1727
- "type": "string"
1728
- }
1729
- },
1730
- "required": [
1731
- "target"
1732
- ],
1733
- "additionalProperties": false
1734
- },
1735
- [Target.AppleAppStore]: {
1736
- "type": "object",
1737
- "properties": {
1738
- "target": {
1739
- "const": "apple_app_store"
1740
- },
1741
- "url": {
1742
- "type": "string",
1743
- "maxLength": 2056
1744
- },
1745
- "headless": {
1746
- "type": "string",
1747
- "enum": [
1748
- "html",
1749
- "png"
1750
- ]
1751
- },
1752
- "geo": {
1753
- "type": "string"
1754
- },
1755
- "device_type": {
1756
- "type": "string"
1757
- },
1758
- "markdown": {
1759
- "type": "boolean"
1760
- },
1761
- "xhr": {
1762
- "type": "boolean"
1763
- },
1764
- "callback_url": {
1765
- "type": "string"
1766
- }
1767
- },
1768
- "required": [
1769
- "target"
1770
- ],
1771
- "additionalProperties": false
1772
- },
1773
- [Target.InstagramGraphqlProfile]: {
1774
- "type": "object",
1775
- "properties": {
1776
- "target": {
1777
- "const": "instagram_graphql_profile"
1778
- },
1779
- "query": {
1780
- "type": "string",
1781
- "maxLength": 2048
1782
- },
1783
- "callback_url": {
1784
- "type": "string"
1785
- }
1786
- },
1787
- "required": [
1788
- "target"
1789
- ],
1790
- "additionalProperties": false
1791
- },
1792
- [Target.TiktokPost]: {
1793
- "type": "object",
1794
- "properties": {
1795
- "target": {
1796
- "const": "tiktok_post"
1797
- },
1798
- "url": {
1799
- "type": "string",
1800
- "maxLength": 2056
1801
- },
1802
- "xhr": {
1803
- "type": "boolean"
1804
- },
1805
- "callback_url": {
1806
- "type": "string"
1807
- }
1808
- },
1809
- "required": [
1810
- "target"
1811
- ],
1812
- "additionalProperties": false
1813
- },
1814
- [Target.TiktokShopSearch]: {
1815
- "type": "object",
1816
- "properties": {
1817
- "target": {
1818
- "const": "tiktok_shop_search"
1819
- },
1820
- "query": {
1821
- "type": "string",
1822
- "maxLength": 2048
1823
- },
1824
- "headless": {
1825
- "type": "string",
1826
- "enum": [
1827
- "html",
1828
- "png"
1829
- ]
1830
- },
1831
- "device_type": {
1832
- "type": "string"
1833
- },
1834
- "markdown": {
1835
- "type": "boolean"
1836
- },
1837
- "country": {
1838
- "type": "string"
1839
- },
1840
- "callback_url": {
1841
- "type": "string"
1842
- }
1843
- },
1844
- "required": [
1845
- "target"
1846
- ],
1847
- "additionalProperties": false
1848
- },
1849
- [Target.TiktokShopProduct]: {
1850
- "type": "object",
1851
- "properties": {
1852
- "target": {
1853
- "const": "tiktok_shop_product"
1854
- },
1855
- "product_id": {
1856
- "type": "string"
1857
- },
1858
- "headless": {
1859
- "type": "string",
1860
- "enum": [
1861
- "html",
1862
- "png"
1863
- ]
1864
- },
1865
- "device_type": {
1866
- "type": "string"
1867
- },
1868
- "xhr": {
1869
- "type": "boolean"
1870
- },
1871
- "markdown": {
1872
- "type": "boolean"
1873
- },
1874
- "country": {
1875
- "type": "string"
1876
- },
1877
- "callback_url": {
1878
- "type": "string"
1879
- }
1880
- },
1881
- "required": [
1882
- "target"
1883
- ],
1884
- "additionalProperties": false
1885
- },
1886
- [Target.Tiktok]: {
1887
- "type": "object",
1888
- "properties": {
1889
- "target": {
1890
- "const": "tiktok"
1891
- },
1892
- "url": {
1893
- "type": "string",
1894
- "maxLength": 2056
1895
- },
1896
- "headless": {
1897
- "type": "string",
1898
- "enum": [
1899
- "html",
1900
- "png"
1901
- ]
1902
- },
1903
- "user_agent_type": {
1904
- "type": "string"
1905
- },
1906
- "callback_url": {
1907
- "type": "string"
1908
- }
1909
- },
1910
- "required": [
1911
- "target"
1912
- ],
1913
- "additionalProperties": false
1914
- },
1915
- [Target.RedditPost]: {
1916
- "type": "object",
1917
- "properties": {
1918
- "target": {
1919
- "const": "reddit_post"
1920
- },
1921
- "url": {
1922
- "type": "string",
1923
- "maxLength": 2056
1924
- },
1925
- "locale": {
1926
- "type": "string"
1927
- },
1928
- "geo": {
1929
- "type": "string"
1930
- },
1931
- "callback_url": {
1932
- "type": "string"
1933
- }
1934
- },
1935
- "required": [
1936
- "target"
1937
- ],
1938
- "additionalProperties": false
1939
- },
1940
- [Target.RedditSubreddit]: {
1941
- "type": "object",
1942
- "properties": {
1943
- "target": {
1944
- "const": "reddit_subreddit"
1945
- },
1946
- "url": {
1947
- "type": "string",
1948
- "maxLength": 2056
1949
- },
1950
- "locale": {
1951
- "type": "string"
1952
- },
1953
- "geo": {
1954
- "type": "string"
1955
- },
1956
- "callback_url": {
1957
- "type": "string"
1958
- }
1959
- },
1960
- "required": [
1961
- "target"
1962
- ],
1963
- "additionalProperties": false
1964
- },
1965
- [Target.RedditUser]: {
1966
- "type": "object",
1967
- "properties": {
1968
- "target": {
1969
- "const": "reddit_user"
1970
- },
1971
- "url": {
1972
- "type": "string",
1973
- "maxLength": 2056
1974
- },
1975
- "locale": {
1976
- "type": "string"
1977
- },
1978
- "geo": {
1979
- "type": "string"
1980
- },
1981
- "sort": {
1982
- "type": "string"
1983
- },
1984
- "callback_url": {
1985
- "type": "string"
1986
- }
1987
- },
1988
- "required": [
1989
- "target"
1990
- ],
1991
- "additionalProperties": false
1992
- },
1993
- [Target.YoutubeVideo]: {
1994
- "type": "object",
1995
- "properties": {
1996
- "target": {
1997
- "const": "youtube_video"
1998
- },
1999
- "query": {
2000
- "type": "string",
2001
- "maxLength": 2048
2002
- },
2003
- "geo": {
2004
- "type": "string"
2005
- },
2006
- "callback_url": {
2007
- "type": "string"
2008
- }
2009
- },
2010
- "required": [
2011
- "target"
2012
- ],
2013
- "additionalProperties": false
2014
- },
2015
- [Target.YoutubeMetadata]: {
2016
- "type": "object",
2017
- "properties": {
2018
- "target": {
2019
- "const": "youtube_metadata"
2020
- },
2021
- "query": {
2022
- "type": "string",
2023
- "maxLength": 2048
2024
- },
2025
- "callback_url": {
2026
- "type": "string"
2027
- }
2028
- },
2029
- "required": [
2030
- "target"
2031
- ],
2032
- "additionalProperties": false
2033
- },
2034
- [Target.YoutubeSearch]: {
2035
- "type": "object",
2036
- "properties": {
2037
- "360": {
2038
- "type": "boolean"
2039
- },
2040
- "target": {
2041
- "const": "youtube_search"
2042
- },
2043
- "query": {
2044
- "type": "string",
2045
- "maxLength": 2048
2046
- },
2047
- "upload_date": {
2048
- "type": "string"
2049
- },
2050
- "type": {
2051
- "type": "string"
2052
- },
2053
- "duration": {
2054
- "type": "string"
2055
- },
2056
- "video_sort_by": {
2057
- "type": "string"
2058
- },
2059
- "3d": {
2060
- "type": "boolean"
2061
- },
2062
- "4k": {
2063
- "type": "boolean"
2064
- },
2065
- "creative_commons": {
2066
- "type": "boolean"
2067
- },
2068
- "hd": {
2069
- "type": "boolean"
2070
- },
2071
- "hdr": {
2072
- "type": "boolean"
2073
- },
2074
- "vr180": {
2075
- "type": "boolean"
2076
- },
2077
- "live": {
2078
- "type": "boolean"
2079
- },
2080
- "location": {
2081
- "type": "boolean"
2082
- },
2083
- "purchased": {
2084
- "type": "boolean"
2085
- },
2086
- "subtitles": {
2087
- "type": "boolean"
2088
- },
2089
- "callback_url": {
2090
- "type": "string"
2091
- }
2092
- },
2093
- "required": [
2094
- "target"
2095
- ],
2096
- "additionalProperties": false
2097
- },
2098
- [Target.YoutubeSearchMax]: {
2099
- "type": "object",
2100
- "properties": {
2101
- "360": {
2102
- "type": "boolean"
2103
- },
2104
- "target": {
2105
- "const": "youtube_search_max"
2106
- },
2107
- "query": {
2108
- "type": "string",
2109
- "maxLength": 2048
2110
- },
2111
- "upload_date": {
2112
- "type": "string"
2113
- },
2114
- "type": {
2115
- "type": "string"
2116
- },
2117
- "duration": {
2118
- "type": "string"
2119
- },
2120
- "video_sort_by": {
2121
- "type": "string"
2122
- },
2123
- "3d": {
2124
- "type": "boolean"
2125
- },
2126
- "4k": {
2127
- "type": "boolean"
2128
- },
2129
- "creative_commons": {
2130
- "type": "boolean"
2131
- },
2132
- "hd": {
2133
- "type": "boolean"
2134
- },
2135
- "hdr": {
2136
- "type": "boolean"
2137
- },
2138
- "vr180": {
2139
- "type": "boolean"
2140
- },
2141
- "live": {
2142
- "type": "boolean"
2143
- },
2144
- "location": {
2145
- "type": "boolean"
2146
- },
2147
- "purchased": {
2148
- "type": "boolean"
2149
- },
2150
- "subtitles": {
2151
- "type": "boolean"
2152
- },
2153
- "markdown": {
2154
- "type": "boolean"
2155
- },
2156
- "callback_url": {
2157
- "type": "string"
2158
- }
2159
- },
2160
- "required": [
2161
- "target"
2162
- ],
2163
- "additionalProperties": false
2164
- },
2165
- [Target.YoutubeSubtitles]: {
2166
- "type": "object",
2167
- "properties": {
2168
- "target": {
2169
- "const": "youtube_subtitles"
2170
- },
2171
- "query": {
2172
- "type": "string",
2173
- "maxLength": 2048
2174
- },
2175
- "language_code": {
2176
- "type": "string"
2177
- },
2178
- "subtitle_origin": {
2179
- "type": "string"
2180
- },
2181
- "callback_url": {
2182
- "type": "string"
2183
- }
2184
- },
2185
- "required": [
2186
- "target"
2187
- ],
2188
- "additionalProperties": false
2189
- },
2190
- [Target.YoutubeChannel]: {
2191
- "type": "object",
2192
- "properties": {
2193
- "target": {
2194
- "const": "youtube_channel"
2195
- },
2196
- "query": {
2197
- "type": "string",
2198
- "maxLength": 2048
2199
- },
2200
- "parse": {
2201
- "type": "boolean"
2202
- },
2203
- "limit": {
2204
- "type": "number",
2205
- "minimum": 0,
2206
- "maximum": 100
2207
- },
2208
- "markdown": {
2209
- "type": "boolean"
2210
- },
2211
- "callback_url": {
2212
- "type": "string"
2213
- }
2214
- },
2215
- "required": [
2216
- "target"
2217
- ],
2218
- "additionalProperties": false
2219
- },
2220
- [Target.SiteUnblocker]: {
2221
- "type": "object",
2222
- "properties": {
2223
- "target": {
2224
- "const": "site_unblocker"
2225
- },
2226
- "url": {
2227
- "type": "string",
2228
- "maxLength": 2056
2229
- },
2230
- "geo": {
2231
- "type": "string"
2232
- },
2233
- "locale": {
2234
- "type": "string"
2235
- },
2236
- "session_id": {
2237
- "type": "string"
2238
- },
2239
- "http_method": {
2240
- "type": "string"
2241
- },
2242
- "customStatusCode": {
2243
- "type": "string"
2244
- },
2245
- "requestBody": {
2246
- "type": "string"
2247
- },
2248
- "headless": {
2249
- "type": "string",
2250
- "enum": [
2251
- "html",
2252
- "png"
2253
- ]
2254
- },
2255
- "headers": {
2256
- "type": "object"
2257
- },
2258
- "force_headers": {
2259
- "type": "boolean"
2260
- },
2261
- "force_cookies": {
2262
- "type": "boolean"
2263
- },
2264
- "customCookies": {
2265
- "type": "string"
2266
- },
2267
- "markdown": {
2268
- "type": "boolean"
2269
- },
2270
- "callback_url": {
2271
- "type": "string"
2272
- }
2273
- },
2274
- "required": [
2275
- "target"
2276
- ],
2277
- "additionalProperties": false
2278
- },
2279
- [Target.SiteUnblockerReq]: {
2280
- "type": "object",
2281
- "properties": {
2282
- "target": {
2283
- "const": "site_unblocker_req"
2284
- },
2285
- "url": {
2286
- "type": "string",
2287
- "maxLength": 2056
2288
- },
2289
- "geo": {
2290
- "type": "string"
2291
- },
2292
- "locale": {
2293
- "type": "string"
2294
- },
2295
- "session_id": {
2296
- "type": "string"
2297
- },
2298
- "http_method": {
2299
- "type": "string"
2300
- },
2301
- "customStatusCode": {
2302
- "type": "string"
2303
- },
2304
- "requestBody": {
2305
- "type": "string"
2306
- },
2307
- "headless": {
2308
- "type": "string",
2309
- "enum": [
2310
- "html",
2311
- "png"
2312
- ]
2313
- },
2314
- "headers": {
2315
- "type": "object"
2316
- },
2317
- "force_headers": {
2318
- "type": "boolean"
2319
- },
2320
- "force_cookies": {
2321
- "type": "boolean"
2322
- },
2323
- "customCookies": {
2324
- "type": "string"
2325
- },
2326
- "markdown": {
2327
- "type": "boolean"
2328
- },
2329
- "callback_url": {
2330
- "type": "string"
2331
- }
2332
- },
2333
- "required": [
2334
- "target"
2335
- ],
2336
- "additionalProperties": false
2337
- },
2338
- };
2339
- export const requestSchemas = {
2340
- [Target.UniversalEcommerce]: z.fromJSONSchema(requestJsonSchemas[Target.UniversalEcommerce]),
2341
- [Target.GoogleSearch]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleSearch]),
2342
- [Target.GoogleTravelHotels]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleTravelHotels]),
2343
- [Target.GoogleTrendsExplore]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleTrendsExplore]),
2344
- [Target.GoogleShoppingSearch]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleShoppingSearch]),
2345
- [Target.GoogleShoppingProduct]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleShoppingProduct]),
2346
- [Target.Google]: z.fromJSONSchema(requestJsonSchemas[Target.Google]),
2347
- [Target.GoogleSuggest]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleSuggest]),
2348
- [Target.GoogleMaps]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleMaps]),
2349
- [Target.GoogleAiMode]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleAiMode]),
2350
- [Target.GoogleAds]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleAds]),
2351
- [Target.GoogleLens]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleLens]),
2352
- [Target.BingSearch]: z.fromJSONSchema(requestJsonSchemas[Target.BingSearch]),
2353
- [Target.Bing]: z.fromJSONSchema(requestJsonSchemas[Target.Bing]),
2354
- [Target.YoutubeTranscript]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeTranscript]),
2355
- [Target.AmazonProduct]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonProduct]),
2356
- [Target.AmazonPricing]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonPricing]),
2357
- [Target.AmazonSearch]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonSearch]),
2358
- [Target.AmazonSellers]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonSellers]),
2359
- [Target.AmazonBestsellers]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonBestsellers]),
2360
- [Target.Amazon]: z.fromJSONSchema(requestJsonSchemas[Target.Amazon]),
2361
- [Target.Ecommerce]: z.fromJSONSchema(requestJsonSchemas[Target.Ecommerce]),
2362
- [Target.EcommerceCore]: z.fromJSONSchema(requestJsonSchemas[Target.EcommerceCore]),
2363
- [Target.WalmartProduct]: z.fromJSONSchema(requestJsonSchemas[Target.WalmartProduct]),
2364
- [Target.WalmartSearch]: z.fromJSONSchema(requestJsonSchemas[Target.WalmartSearch]),
2365
- [Target.Walmart]: z.fromJSONSchema(requestJsonSchemas[Target.Walmart]),
2366
- [Target.TargetProduct]: z.fromJSONSchema(requestJsonSchemas[Target.TargetProduct]),
2367
- [Target.TargetSearch]: z.fromJSONSchema(requestJsonSchemas[Target.TargetSearch]),
2368
- [Target.Target]: z.fromJSONSchema(requestJsonSchemas[Target.Target]),
2369
- [Target.LowesSearch]: z.fromJSONSchema(requestJsonSchemas[Target.LowesSearch]),
2370
- [Target.Universal]: z.fromJSONSchema(requestJsonSchemas[Target.Universal]),
2371
- [Target.UniversalCore]: z.fromJSONSchema(requestJsonSchemas[Target.UniversalCore]),
2372
- [Target.Chatgpt]: z.fromJSONSchema(requestJsonSchemas[Target.Chatgpt]),
2373
- [Target.Perplexity]: z.fromJSONSchema(requestJsonSchemas[Target.Perplexity]),
2374
- [Target.Bbb]: z.fromJSONSchema(requestJsonSchemas[Target.Bbb]),
2375
- [Target.Autotrader]: z.fromJSONSchema(requestJsonSchemas[Target.Autotrader]),
2376
- [Target.Mobile]: z.fromJSONSchema(requestJsonSchemas[Target.Mobile]),
2377
- [Target.Airbnb]: z.fromJSONSchema(requestJsonSchemas[Target.Airbnb]),
2378
- [Target.AppleAppStore]: z.fromJSONSchema(requestJsonSchemas[Target.AppleAppStore]),
2379
- [Target.InstagramGraphqlProfile]: z.fromJSONSchema(requestJsonSchemas[Target.InstagramGraphqlProfile]),
2380
- [Target.TiktokPost]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokPost]),
2381
- [Target.TiktokShopSearch]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokShopSearch]),
2382
- [Target.TiktokShopProduct]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokShopProduct]),
2383
- [Target.Tiktok]: z.fromJSONSchema(requestJsonSchemas[Target.Tiktok]),
2384
- [Target.RedditPost]: z.fromJSONSchema(requestJsonSchemas[Target.RedditPost]),
2385
- [Target.RedditSubreddit]: z.fromJSONSchema(requestJsonSchemas[Target.RedditSubreddit]),
2386
- [Target.RedditUser]: z.fromJSONSchema(requestJsonSchemas[Target.RedditUser]),
2387
- [Target.YoutubeVideo]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeVideo]),
2388
- [Target.YoutubeMetadata]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeMetadata]),
2389
- [Target.YoutubeSearch]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSearch]),
2390
- [Target.YoutubeSearchMax]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSearchMax]),
2391
- [Target.YoutubeSubtitles]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSubtitles]),
2392
- [Target.YoutubeChannel]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeChannel]),
2393
- [Target.SiteUnblocker]: z.fromJSONSchema(requestJsonSchemas[Target.SiteUnblocker]),
2394
- [Target.SiteUnblockerReq]: z.fromJSONSchema(requestJsonSchemas[Target.SiteUnblockerReq]),
2395
- };