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