@decodo/sdk-ts 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/cjs/api/web-scraping-api.d.ts +15 -0
  2. package/build/cjs/api/web-scraping-api.js +43 -0
  3. package/build/cjs/client.d.ts +13 -0
  4. package/build/cjs/client.js +36 -0
  5. package/build/cjs/errors.d.ts +18 -0
  6. package/build/cjs/errors.js +44 -0
  7. package/build/cjs/generated/parameters.d.ts +11 -0
  8. package/build/cjs/generated/parameters.js +82 -0
  9. package/build/cjs/generated/request-schemas.d.ts +1951 -0
  10. package/build/cjs/generated/request-schemas.js +2241 -0
  11. package/build/cjs/generated/targets.d.ts +675 -0
  12. package/build/cjs/generated/targets.js +319 -0
  13. package/build/cjs/http.d.ts +22 -0
  14. package/build/cjs/http.js +95 -0
  15. package/build/cjs/index.d.ts +12 -0
  16. package/build/cjs/index.js +23 -0
  17. package/build/cjs/schema/build-request-schemas.d.ts +4 -0
  18. package/build/cjs/schema/build-request-schemas.js +56 -0
  19. package/build/cjs/schema/build-target-meta.d.ts +3 -0
  20. package/build/cjs/schema/build-target-meta.js +19 -0
  21. package/build/cjs/schema/bundled-provider.d.ts +2 -0
  22. package/build/cjs/schema/bundled-provider.js +9 -0
  23. package/build/cjs/schema/bundled-schema.d.ts +10 -0
  24. package/build/cjs/schema/bundled-schema.js +24 -0
  25. package/build/cjs/schema/constants.d.ts +5 -0
  26. package/build/cjs/schema/constants.js +8 -0
  27. package/build/cjs/schema/expand-path.d.ts +1 -0
  28. package/build/cjs/schema/expand-path.js +15 -0
  29. package/build/cjs/schema/remote-provider.d.ts +8 -0
  30. package/build/cjs/schema/remote-provider.js +120 -0
  31. package/build/cjs/schema/remote-schema.d.ts +19 -0
  32. package/build/cjs/schema/remote-schema.js +149 -0
  33. package/build/cjs/schema/resolve-latest-ir.d.ts +2 -0
  34. package/build/cjs/schema/resolve-latest-ir.js +55 -0
  35. package/build/cjs/schema/resolve-provider.d.ts +3 -0
  36. package/build/cjs/schema/resolve-provider.js +27 -0
  37. package/build/cjs/schema/types.d.ts +44 -0
  38. package/build/cjs/schema/types.js +2 -0
  39. package/build/cjs/types/requests.d.ts +1 -0
  40. package/build/cjs/types/requests.js +2 -0
  41. package/build/cjs/types/responses.d.ts +62 -0
  42. package/build/cjs/types/responses.js +2 -0
  43. package/build/esm/api/web-scraping-api.d.ts +15 -0
  44. package/build/esm/api/web-scraping-api.js +39 -0
  45. package/build/esm/client.d.ts +13 -0
  46. package/build/esm/client.js +32 -0
  47. package/build/esm/errors.d.ts +18 -0
  48. package/build/esm/errors.js +36 -0
  49. package/build/esm/generated/parameters.d.ts +11 -0
  50. package/build/esm/generated/parameters.js +79 -0
  51. package/build/esm/generated/request-schemas.d.ts +1951 -0
  52. package/build/esm/generated/request-schemas.js +2205 -0
  53. package/build/esm/generated/targets.d.ts +675 -0
  54. package/build/esm/generated/targets.js +316 -0
  55. package/build/esm/http.d.ts +22 -0
  56. package/build/esm/http.js +91 -0
  57. package/build/esm/index.d.ts +12 -0
  58. package/build/esm/index.js +7 -0
  59. package/build/esm/schema/build-request-schemas.d.ts +4 -0
  60. package/build/esm/schema/build-request-schemas.js +18 -0
  61. package/build/esm/schema/build-target-meta.d.ts +3 -0
  62. package/build/esm/schema/build-target-meta.js +15 -0
  63. package/build/esm/schema/bundled-provider.d.ts +2 -0
  64. package/build/esm/schema/bundled-provider.js +6 -0
  65. package/build/esm/schema/bundled-schema.d.ts +10 -0
  66. package/build/esm/schema/bundled-schema.js +20 -0
  67. package/build/esm/schema/constants.d.ts +5 -0
  68. package/build/esm/schema/constants.js +5 -0
  69. package/build/esm/schema/expand-path.d.ts +1 -0
  70. package/build/esm/schema/expand-path.js +11 -0
  71. package/build/esm/schema/remote-provider.d.ts +8 -0
  72. package/build/esm/schema/remote-provider.js +83 -0
  73. package/build/esm/schema/remote-schema.d.ts +19 -0
  74. package/build/esm/schema/remote-schema.js +112 -0
  75. package/build/esm/schema/resolve-latest-ir.d.ts +2 -0
  76. package/build/esm/schema/resolve-latest-ir.js +51 -0
  77. package/build/esm/schema/resolve-provider.d.ts +3 -0
  78. package/build/esm/schema/resolve-provider.js +22 -0
  79. package/build/esm/schema/types.d.ts +44 -0
  80. package/build/esm/schema/types.js +1 -0
  81. package/build/esm/types/requests.d.ts +1 -0
  82. package/build/esm/types/requests.js +1 -0
  83. package/build/esm/types/responses.d.ts +62 -0
  84. package/build/esm/types/responses.js +1 -0
  85. package/package.json +6 -3
@@ -0,0 +1,2205 @@
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.WalmartProduct]: {
1067
+ "type": "object",
1068
+ "properties": {
1069
+ "target": {
1070
+ "const": "walmart_product"
1071
+ },
1072
+ "product_id": {
1073
+ "type": "string"
1074
+ },
1075
+ "headless": {
1076
+ "type": "string",
1077
+ "enum": [
1078
+ "html",
1079
+ "png"
1080
+ ]
1081
+ },
1082
+ "parse": {
1083
+ "type": "boolean"
1084
+ },
1085
+ "xhr": {
1086
+ "type": "boolean"
1087
+ },
1088
+ "markdown": {
1089
+ "type": "boolean"
1090
+ },
1091
+ "fulfillment_type": {
1092
+ "type": "string"
1093
+ },
1094
+ "walmart_store_id": {
1095
+ "type": "string"
1096
+ },
1097
+ "delivery_zip": {
1098
+ "type": "string"
1099
+ },
1100
+ "callback_url": {
1101
+ "type": "string"
1102
+ }
1103
+ },
1104
+ "required": [
1105
+ "target"
1106
+ ],
1107
+ "additionalProperties": false
1108
+ },
1109
+ [Target.WalmartSearch]: {
1110
+ "type": "object",
1111
+ "properties": {
1112
+ "target": {
1113
+ "const": "walmart_search"
1114
+ },
1115
+ "query": {
1116
+ "type": "string",
1117
+ "maxLength": 2048
1118
+ },
1119
+ "headless": {
1120
+ "type": "string",
1121
+ "enum": [
1122
+ "html",
1123
+ "png"
1124
+ ]
1125
+ },
1126
+ "parse": {
1127
+ "type": "boolean"
1128
+ },
1129
+ "markdown": {
1130
+ "type": "boolean"
1131
+ },
1132
+ "fulfillment_type": {
1133
+ "type": "string"
1134
+ },
1135
+ "walmart_store_id": {
1136
+ "type": "string"
1137
+ },
1138
+ "delivery_zip": {
1139
+ "type": "string"
1140
+ },
1141
+ "callback_url": {
1142
+ "type": "string"
1143
+ }
1144
+ },
1145
+ "required": [
1146
+ "target"
1147
+ ],
1148
+ "additionalProperties": false
1149
+ },
1150
+ [Target.Walmart]: {
1151
+ "type": "object",
1152
+ "properties": {
1153
+ "target": {
1154
+ "const": "walmart"
1155
+ },
1156
+ "url": {
1157
+ "type": "string",
1158
+ "maxLength": 2056
1159
+ },
1160
+ "headless": {
1161
+ "type": "string",
1162
+ "enum": [
1163
+ "html",
1164
+ "png"
1165
+ ]
1166
+ },
1167
+ "locale": {
1168
+ "type": "string"
1169
+ },
1170
+ "geo": {
1171
+ "type": "string"
1172
+ },
1173
+ "device_type": {
1174
+ "type": "string"
1175
+ },
1176
+ "store_id": {
1177
+ "type": "string"
1178
+ },
1179
+ "markdown": {
1180
+ "type": "boolean"
1181
+ },
1182
+ "xhr": {
1183
+ "type": "boolean"
1184
+ },
1185
+ "callback_url": {
1186
+ "type": "string"
1187
+ }
1188
+ },
1189
+ "required": [
1190
+ "target"
1191
+ ],
1192
+ "additionalProperties": false
1193
+ },
1194
+ [Target.TargetProduct]: {
1195
+ "type": "object",
1196
+ "properties": {
1197
+ "target": {
1198
+ "const": "target_product"
1199
+ },
1200
+ "product_id": {
1201
+ "type": "string"
1202
+ },
1203
+ "headless": {
1204
+ "type": "string",
1205
+ "enum": [
1206
+ "html",
1207
+ "png"
1208
+ ]
1209
+ },
1210
+ "parse": {
1211
+ "type": "boolean"
1212
+ },
1213
+ "device_type": {
1214
+ "type": "string"
1215
+ },
1216
+ "markdown": {
1217
+ "type": "boolean"
1218
+ },
1219
+ "xhr": {
1220
+ "type": "boolean"
1221
+ },
1222
+ "delivery_type": {
1223
+ "type": "string"
1224
+ },
1225
+ "target_store_id": {
1226
+ "type": "string"
1227
+ },
1228
+ "delivery_zip": {
1229
+ "type": "string"
1230
+ },
1231
+ "callback_url": {
1232
+ "type": "string"
1233
+ }
1234
+ },
1235
+ "required": [
1236
+ "target"
1237
+ ],
1238
+ "additionalProperties": false
1239
+ },
1240
+ [Target.TargetSearch]: {
1241
+ "type": "object",
1242
+ "properties": {
1243
+ "target": {
1244
+ "const": "target_search"
1245
+ },
1246
+ "query": {
1247
+ "type": "string",
1248
+ "maxLength": 2048
1249
+ },
1250
+ "headless": {
1251
+ "type": "string",
1252
+ "enum": [
1253
+ "html",
1254
+ "png"
1255
+ ]
1256
+ },
1257
+ "parse": {
1258
+ "type": "boolean"
1259
+ },
1260
+ "device_type": {
1261
+ "type": "string"
1262
+ },
1263
+ "delivery_type": {
1264
+ "type": "string"
1265
+ },
1266
+ "target_store_id": {
1267
+ "type": "string"
1268
+ },
1269
+ "delivery_zip": {
1270
+ "type": "string"
1271
+ },
1272
+ "xhr": {
1273
+ "type": "boolean"
1274
+ },
1275
+ "markdown": {
1276
+ "type": "boolean"
1277
+ },
1278
+ "callback_url": {
1279
+ "type": "string"
1280
+ }
1281
+ },
1282
+ "required": [
1283
+ "target"
1284
+ ],
1285
+ "additionalProperties": false
1286
+ },
1287
+ [Target.Target]: {
1288
+ "type": "object",
1289
+ "properties": {
1290
+ "target": {
1291
+ "const": "target"
1292
+ },
1293
+ "url": {
1294
+ "type": "string",
1295
+ "maxLength": 2056
1296
+ },
1297
+ "headless": {
1298
+ "type": "string",
1299
+ "enum": [
1300
+ "html",
1301
+ "png"
1302
+ ]
1303
+ },
1304
+ "device_type": {
1305
+ "type": "string"
1306
+ },
1307
+ "xhr": {
1308
+ "type": "boolean"
1309
+ },
1310
+ "delivery_zip": {
1311
+ "type": "string"
1312
+ },
1313
+ "target_store_id": {
1314
+ "type": "string"
1315
+ },
1316
+ "callback_url": {
1317
+ "type": "string"
1318
+ }
1319
+ },
1320
+ "required": [
1321
+ "target"
1322
+ ],
1323
+ "additionalProperties": false
1324
+ },
1325
+ [Target.LowesSearch]: {
1326
+ "type": "object",
1327
+ "properties": {
1328
+ "target": {
1329
+ "const": "lowes_search"
1330
+ },
1331
+ "query": {
1332
+ "type": "string",
1333
+ "maxLength": 2048
1334
+ },
1335
+ "lowes_store_id": {
1336
+ "type": "string"
1337
+ },
1338
+ "headless": {
1339
+ "type": "string",
1340
+ "enum": [
1341
+ "html",
1342
+ "png"
1343
+ ]
1344
+ },
1345
+ "delivery_zip": {
1346
+ "type": "string"
1347
+ },
1348
+ "user_agent_type": {
1349
+ "type": "string"
1350
+ },
1351
+ "free_delivery": {
1352
+ "type": "boolean"
1353
+ },
1354
+ "pickup_today": {
1355
+ "type": "boolean"
1356
+ },
1357
+ "delivery_today_tomorrow": {
1358
+ "type": "boolean"
1359
+ },
1360
+ "callback_url": {
1361
+ "type": "string"
1362
+ }
1363
+ },
1364
+ "required": [
1365
+ "target"
1366
+ ],
1367
+ "additionalProperties": false
1368
+ },
1369
+ [Target.Universal]: {
1370
+ "type": "object",
1371
+ "properties": {
1372
+ "target": {
1373
+ "const": "universal"
1374
+ },
1375
+ "url": {
1376
+ "type": "string",
1377
+ "maxLength": 2056
1378
+ },
1379
+ "payload": {
1380
+ "type": "string"
1381
+ },
1382
+ "proxy_pool": {
1383
+ "type": "string",
1384
+ "enum": [
1385
+ "standard",
1386
+ "premium"
1387
+ ]
1388
+ },
1389
+ "http_method": {
1390
+ "type": "string"
1391
+ },
1392
+ "headless": {
1393
+ "type": "string",
1394
+ "enum": [
1395
+ "html",
1396
+ "png"
1397
+ ]
1398
+ },
1399
+ "geo": {
1400
+ "type": "string"
1401
+ },
1402
+ "locale": {
1403
+ "type": "string"
1404
+ },
1405
+ "device_type": {
1406
+ "type": "string"
1407
+ },
1408
+ "session_id": {
1409
+ "type": "string"
1410
+ },
1411
+ "successful_status_codes": {
1412
+ "type": "array",
1413
+ "items": {
1414
+ "type": "number"
1415
+ }
1416
+ },
1417
+ "headers": {
1418
+ "type": "object"
1419
+ },
1420
+ "cookies": {
1421
+ "type": "object"
1422
+ },
1423
+ "force_headers": {
1424
+ "type": "boolean"
1425
+ },
1426
+ "force_cookies": {
1427
+ "type": "boolean"
1428
+ },
1429
+ "xhr": {
1430
+ "type": "boolean"
1431
+ },
1432
+ "markdown": {
1433
+ "type": "boolean"
1434
+ },
1435
+ "callback_url": {
1436
+ "type": "string"
1437
+ }
1438
+ },
1439
+ "required": [
1440
+ "target"
1441
+ ],
1442
+ "additionalProperties": false
1443
+ },
1444
+ [Target.Chatgpt]: {
1445
+ "type": "object",
1446
+ "properties": {
1447
+ "target": {
1448
+ "const": "chatgpt"
1449
+ },
1450
+ "prompt": {
1451
+ "type": "string",
1452
+ "maxLength": 8192
1453
+ },
1454
+ "search": {
1455
+ "type": "boolean"
1456
+ },
1457
+ "parse": {
1458
+ "type": "boolean"
1459
+ },
1460
+ "geo": {
1461
+ "type": "string"
1462
+ },
1463
+ "device_type": {
1464
+ "type": "string"
1465
+ },
1466
+ "markdown": {
1467
+ "type": "boolean"
1468
+ },
1469
+ "xhr": {
1470
+ "type": "boolean"
1471
+ },
1472
+ "callback_url": {
1473
+ "type": "string"
1474
+ }
1475
+ },
1476
+ "required": [
1477
+ "target"
1478
+ ],
1479
+ "additionalProperties": false
1480
+ },
1481
+ [Target.Perplexity]: {
1482
+ "type": "object",
1483
+ "properties": {
1484
+ "target": {
1485
+ "const": "perplexity"
1486
+ },
1487
+ "prompt": {
1488
+ "type": "string",
1489
+ "maxLength": 8192
1490
+ },
1491
+ "parse": {
1492
+ "type": "boolean"
1493
+ },
1494
+ "geo": {
1495
+ "type": "string"
1496
+ },
1497
+ "device_type": {
1498
+ "type": "string"
1499
+ },
1500
+ "markdown": {
1501
+ "type": "boolean"
1502
+ },
1503
+ "xhr": {
1504
+ "type": "boolean"
1505
+ },
1506
+ "callback_url": {
1507
+ "type": "string"
1508
+ }
1509
+ },
1510
+ "required": [
1511
+ "target"
1512
+ ],
1513
+ "additionalProperties": false
1514
+ },
1515
+ [Target.Bbb]: {
1516
+ "type": "object",
1517
+ "properties": {
1518
+ "target": {
1519
+ "const": "bbb"
1520
+ },
1521
+ "url": {
1522
+ "type": "string",
1523
+ "maxLength": 2056
1524
+ },
1525
+ "headless": {
1526
+ "type": "string",
1527
+ "enum": [
1528
+ "html",
1529
+ "png"
1530
+ ]
1531
+ },
1532
+ "geo": {
1533
+ "type": "string"
1534
+ },
1535
+ "device_type": {
1536
+ "type": "string"
1537
+ },
1538
+ "markdown": {
1539
+ "type": "boolean"
1540
+ },
1541
+ "xhr": {
1542
+ "type": "boolean"
1543
+ },
1544
+ "callback_url": {
1545
+ "type": "string"
1546
+ }
1547
+ },
1548
+ "required": [
1549
+ "target"
1550
+ ],
1551
+ "additionalProperties": false
1552
+ },
1553
+ [Target.Autotrader]: {
1554
+ "type": "object",
1555
+ "properties": {
1556
+ "target": {
1557
+ "const": "autotrader"
1558
+ },
1559
+ "url": {
1560
+ "type": "string",
1561
+ "maxLength": 2056
1562
+ },
1563
+ "headless": {
1564
+ "type": "string",
1565
+ "enum": [
1566
+ "html",
1567
+ "png"
1568
+ ]
1569
+ },
1570
+ "geo": {
1571
+ "type": "string"
1572
+ },
1573
+ "device_type": {
1574
+ "type": "string"
1575
+ },
1576
+ "markdown": {
1577
+ "type": "boolean"
1578
+ },
1579
+ "xhr": {
1580
+ "type": "boolean"
1581
+ },
1582
+ "callback_url": {
1583
+ "type": "string"
1584
+ }
1585
+ },
1586
+ "required": [
1587
+ "target"
1588
+ ],
1589
+ "additionalProperties": false
1590
+ },
1591
+ [Target.Mobile]: {
1592
+ "type": "object",
1593
+ "properties": {
1594
+ "target": {
1595
+ "const": "mobile"
1596
+ },
1597
+ "url": {
1598
+ "type": "string",
1599
+ "maxLength": 2056
1600
+ },
1601
+ "headless": {
1602
+ "type": "string",
1603
+ "enum": [
1604
+ "html",
1605
+ "png"
1606
+ ]
1607
+ },
1608
+ "geo": {
1609
+ "type": "string"
1610
+ },
1611
+ "device_type": {
1612
+ "type": "string"
1613
+ },
1614
+ "markdown": {
1615
+ "type": "boolean"
1616
+ },
1617
+ "xhr": {
1618
+ "type": "boolean"
1619
+ },
1620
+ "callback_url": {
1621
+ "type": "string"
1622
+ }
1623
+ },
1624
+ "required": [
1625
+ "target"
1626
+ ],
1627
+ "additionalProperties": false
1628
+ },
1629
+ [Target.Airbnb]: {
1630
+ "type": "object",
1631
+ "properties": {
1632
+ "target": {
1633
+ "const": "airbnb"
1634
+ },
1635
+ "url": {
1636
+ "type": "string",
1637
+ "maxLength": 2056
1638
+ },
1639
+ "headless": {
1640
+ "type": "string",
1641
+ "enum": [
1642
+ "html",
1643
+ "png"
1644
+ ]
1645
+ },
1646
+ "geo": {
1647
+ "type": "string"
1648
+ },
1649
+ "device_type": {
1650
+ "type": "string"
1651
+ },
1652
+ "markdown": {
1653
+ "type": "boolean"
1654
+ },
1655
+ "xhr": {
1656
+ "type": "boolean"
1657
+ },
1658
+ "callback_url": {
1659
+ "type": "string"
1660
+ }
1661
+ },
1662
+ "required": [
1663
+ "target"
1664
+ ],
1665
+ "additionalProperties": false
1666
+ },
1667
+ [Target.AppleAppStore]: {
1668
+ "type": "object",
1669
+ "properties": {
1670
+ "target": {
1671
+ "const": "apple_app_store"
1672
+ },
1673
+ "url": {
1674
+ "type": "string",
1675
+ "maxLength": 2056
1676
+ },
1677
+ "headless": {
1678
+ "type": "string",
1679
+ "enum": [
1680
+ "html",
1681
+ "png"
1682
+ ]
1683
+ },
1684
+ "geo": {
1685
+ "type": "string"
1686
+ },
1687
+ "device_type": {
1688
+ "type": "string"
1689
+ },
1690
+ "markdown": {
1691
+ "type": "boolean"
1692
+ },
1693
+ "xhr": {
1694
+ "type": "boolean"
1695
+ },
1696
+ "callback_url": {
1697
+ "type": "string"
1698
+ }
1699
+ },
1700
+ "required": [
1701
+ "target"
1702
+ ],
1703
+ "additionalProperties": false
1704
+ },
1705
+ [Target.InstagramGraphqlProfile]: {
1706
+ "type": "object",
1707
+ "properties": {
1708
+ "target": {
1709
+ "const": "instagram_graphql_profile"
1710
+ },
1711
+ "query": {
1712
+ "type": "string",
1713
+ "maxLength": 2048
1714
+ },
1715
+ "callback_url": {
1716
+ "type": "string"
1717
+ }
1718
+ },
1719
+ "required": [
1720
+ "target"
1721
+ ],
1722
+ "additionalProperties": false
1723
+ },
1724
+ [Target.TiktokPost]: {
1725
+ "type": "object",
1726
+ "properties": {
1727
+ "target": {
1728
+ "const": "tiktok_post"
1729
+ },
1730
+ "url": {
1731
+ "type": "string",
1732
+ "maxLength": 2056
1733
+ },
1734
+ "xhr": {
1735
+ "type": "boolean"
1736
+ },
1737
+ "callback_url": {
1738
+ "type": "string"
1739
+ }
1740
+ },
1741
+ "required": [
1742
+ "target"
1743
+ ],
1744
+ "additionalProperties": false
1745
+ },
1746
+ [Target.TiktokShopSearch]: {
1747
+ "type": "object",
1748
+ "properties": {
1749
+ "target": {
1750
+ "const": "tiktok_shop_search"
1751
+ },
1752
+ "query": {
1753
+ "type": "string",
1754
+ "maxLength": 2048
1755
+ },
1756
+ "headless": {
1757
+ "type": "string",
1758
+ "enum": [
1759
+ "html",
1760
+ "png"
1761
+ ]
1762
+ },
1763
+ "device_type": {
1764
+ "type": "string"
1765
+ },
1766
+ "markdown": {
1767
+ "type": "boolean"
1768
+ },
1769
+ "country": {
1770
+ "type": "string"
1771
+ },
1772
+ "callback_url": {
1773
+ "type": "string"
1774
+ }
1775
+ },
1776
+ "required": [
1777
+ "target"
1778
+ ],
1779
+ "additionalProperties": false
1780
+ },
1781
+ [Target.TiktokShopProduct]: {
1782
+ "type": "object",
1783
+ "properties": {
1784
+ "target": {
1785
+ "const": "tiktok_shop_product"
1786
+ },
1787
+ "product_id": {
1788
+ "type": "string"
1789
+ },
1790
+ "headless": {
1791
+ "type": "string",
1792
+ "enum": [
1793
+ "html",
1794
+ "png"
1795
+ ]
1796
+ },
1797
+ "device_type": {
1798
+ "type": "string"
1799
+ },
1800
+ "xhr": {
1801
+ "type": "boolean"
1802
+ },
1803
+ "markdown": {
1804
+ "type": "boolean"
1805
+ },
1806
+ "country": {
1807
+ "type": "string"
1808
+ },
1809
+ "callback_url": {
1810
+ "type": "string"
1811
+ }
1812
+ },
1813
+ "required": [
1814
+ "target"
1815
+ ],
1816
+ "additionalProperties": false
1817
+ },
1818
+ [Target.Tiktok]: {
1819
+ "type": "object",
1820
+ "properties": {
1821
+ "target": {
1822
+ "const": "tiktok"
1823
+ },
1824
+ "url": {
1825
+ "type": "string",
1826
+ "maxLength": 2056
1827
+ },
1828
+ "headless": {
1829
+ "type": "string",
1830
+ "enum": [
1831
+ "html",
1832
+ "png"
1833
+ ]
1834
+ },
1835
+ "user_agent_type": {
1836
+ "type": "string"
1837
+ },
1838
+ "callback_url": {
1839
+ "type": "string"
1840
+ }
1841
+ },
1842
+ "required": [
1843
+ "target"
1844
+ ],
1845
+ "additionalProperties": false
1846
+ },
1847
+ [Target.RedditPost]: {
1848
+ "type": "object",
1849
+ "properties": {
1850
+ "target": {
1851
+ "const": "reddit_post"
1852
+ },
1853
+ "url": {
1854
+ "type": "string",
1855
+ "maxLength": 2056
1856
+ },
1857
+ "locale": {
1858
+ "type": "string"
1859
+ },
1860
+ "geo": {
1861
+ "type": "string"
1862
+ },
1863
+ "callback_url": {
1864
+ "type": "string"
1865
+ }
1866
+ },
1867
+ "required": [
1868
+ "target"
1869
+ ],
1870
+ "additionalProperties": false
1871
+ },
1872
+ [Target.RedditSubreddit]: {
1873
+ "type": "object",
1874
+ "properties": {
1875
+ "target": {
1876
+ "const": "reddit_subreddit"
1877
+ },
1878
+ "url": {
1879
+ "type": "string",
1880
+ "maxLength": 2056
1881
+ },
1882
+ "locale": {
1883
+ "type": "string"
1884
+ },
1885
+ "geo": {
1886
+ "type": "string"
1887
+ },
1888
+ "callback_url": {
1889
+ "type": "string"
1890
+ }
1891
+ },
1892
+ "required": [
1893
+ "target"
1894
+ ],
1895
+ "additionalProperties": false
1896
+ },
1897
+ [Target.RedditUser]: {
1898
+ "type": "object",
1899
+ "properties": {
1900
+ "target": {
1901
+ "const": "reddit_user"
1902
+ },
1903
+ "url": {
1904
+ "type": "string",
1905
+ "maxLength": 2056
1906
+ },
1907
+ "locale": {
1908
+ "type": "string"
1909
+ },
1910
+ "geo": {
1911
+ "type": "string"
1912
+ },
1913
+ "sort": {
1914
+ "type": "string"
1915
+ },
1916
+ "callback_url": {
1917
+ "type": "string"
1918
+ }
1919
+ },
1920
+ "required": [
1921
+ "target"
1922
+ ],
1923
+ "additionalProperties": false
1924
+ },
1925
+ [Target.YoutubeVideo]: {
1926
+ "type": "object",
1927
+ "properties": {
1928
+ "target": {
1929
+ "const": "youtube_video"
1930
+ },
1931
+ "query": {
1932
+ "type": "string",
1933
+ "maxLength": 2048
1934
+ },
1935
+ "geo": {
1936
+ "type": "string"
1937
+ },
1938
+ "callback_url": {
1939
+ "type": "string"
1940
+ }
1941
+ },
1942
+ "required": [
1943
+ "target"
1944
+ ],
1945
+ "additionalProperties": false
1946
+ },
1947
+ [Target.YoutubeMetadata]: {
1948
+ "type": "object",
1949
+ "properties": {
1950
+ "target": {
1951
+ "const": "youtube_metadata"
1952
+ },
1953
+ "query": {
1954
+ "type": "string",
1955
+ "maxLength": 2048
1956
+ },
1957
+ "callback_url": {
1958
+ "type": "string"
1959
+ }
1960
+ },
1961
+ "required": [
1962
+ "target"
1963
+ ],
1964
+ "additionalProperties": false
1965
+ },
1966
+ [Target.YoutubeSearch]: {
1967
+ "type": "object",
1968
+ "properties": {
1969
+ "360": {
1970
+ "type": "boolean"
1971
+ },
1972
+ "target": {
1973
+ "const": "youtube_search"
1974
+ },
1975
+ "query": {
1976
+ "type": "string",
1977
+ "maxLength": 2048
1978
+ },
1979
+ "upload_date": {
1980
+ "type": "string"
1981
+ },
1982
+ "type": {
1983
+ "type": "string"
1984
+ },
1985
+ "duration": {
1986
+ "type": "string"
1987
+ },
1988
+ "video_sort_by": {
1989
+ "type": "string"
1990
+ },
1991
+ "3d": {
1992
+ "type": "boolean"
1993
+ },
1994
+ "4k": {
1995
+ "type": "boolean"
1996
+ },
1997
+ "creative_commons": {
1998
+ "type": "boolean"
1999
+ },
2000
+ "hd": {
2001
+ "type": "boolean"
2002
+ },
2003
+ "hdr": {
2004
+ "type": "boolean"
2005
+ },
2006
+ "vr180": {
2007
+ "type": "boolean"
2008
+ },
2009
+ "live": {
2010
+ "type": "boolean"
2011
+ },
2012
+ "location": {
2013
+ "type": "boolean"
2014
+ },
2015
+ "purchased": {
2016
+ "type": "boolean"
2017
+ },
2018
+ "subtitles": {
2019
+ "type": "boolean"
2020
+ },
2021
+ "callback_url": {
2022
+ "type": "string"
2023
+ }
2024
+ },
2025
+ "required": [
2026
+ "target"
2027
+ ],
2028
+ "additionalProperties": false
2029
+ },
2030
+ [Target.YoutubeSearchMax]: {
2031
+ "type": "object",
2032
+ "properties": {
2033
+ "360": {
2034
+ "type": "boolean"
2035
+ },
2036
+ "target": {
2037
+ "const": "youtube_search_max"
2038
+ },
2039
+ "query": {
2040
+ "type": "string",
2041
+ "maxLength": 2048
2042
+ },
2043
+ "upload_date": {
2044
+ "type": "string"
2045
+ },
2046
+ "type": {
2047
+ "type": "string"
2048
+ },
2049
+ "duration": {
2050
+ "type": "string"
2051
+ },
2052
+ "video_sort_by": {
2053
+ "type": "string"
2054
+ },
2055
+ "3d": {
2056
+ "type": "boolean"
2057
+ },
2058
+ "4k": {
2059
+ "type": "boolean"
2060
+ },
2061
+ "creative_commons": {
2062
+ "type": "boolean"
2063
+ },
2064
+ "hd": {
2065
+ "type": "boolean"
2066
+ },
2067
+ "hdr": {
2068
+ "type": "boolean"
2069
+ },
2070
+ "vr180": {
2071
+ "type": "boolean"
2072
+ },
2073
+ "live": {
2074
+ "type": "boolean"
2075
+ },
2076
+ "location": {
2077
+ "type": "boolean"
2078
+ },
2079
+ "purchased": {
2080
+ "type": "boolean"
2081
+ },
2082
+ "subtitles": {
2083
+ "type": "boolean"
2084
+ },
2085
+ "markdown": {
2086
+ "type": "boolean"
2087
+ },
2088
+ "callback_url": {
2089
+ "type": "string"
2090
+ }
2091
+ },
2092
+ "required": [
2093
+ "target"
2094
+ ],
2095
+ "additionalProperties": false
2096
+ },
2097
+ [Target.YoutubeSubtitles]: {
2098
+ "type": "object",
2099
+ "properties": {
2100
+ "target": {
2101
+ "const": "youtube_subtitles"
2102
+ },
2103
+ "query": {
2104
+ "type": "string",
2105
+ "maxLength": 2048
2106
+ },
2107
+ "language_code": {
2108
+ "type": "string"
2109
+ },
2110
+ "subtitle_origin": {
2111
+ "type": "string"
2112
+ },
2113
+ "callback_url": {
2114
+ "type": "string"
2115
+ }
2116
+ },
2117
+ "required": [
2118
+ "target"
2119
+ ],
2120
+ "additionalProperties": false
2121
+ },
2122
+ [Target.YoutubeChannel]: {
2123
+ "type": "object",
2124
+ "properties": {
2125
+ "target": {
2126
+ "const": "youtube_channel"
2127
+ },
2128
+ "query": {
2129
+ "type": "string",
2130
+ "maxLength": 2048
2131
+ },
2132
+ "parse": {
2133
+ "type": "boolean"
2134
+ },
2135
+ "limit": {
2136
+ "type": "number",
2137
+ "minimum": 0,
2138
+ "maximum": 100
2139
+ },
2140
+ "markdown": {
2141
+ "type": "boolean"
2142
+ },
2143
+ "callback_url": {
2144
+ "type": "string"
2145
+ }
2146
+ },
2147
+ "required": [
2148
+ "target"
2149
+ ],
2150
+ "additionalProperties": false
2151
+ },
2152
+ };
2153
+ export const requestSchemas = {
2154
+ [Target.UniversalEcommerce]: z.fromJSONSchema(requestJsonSchemas[Target.UniversalEcommerce]),
2155
+ [Target.GoogleSearch]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleSearch]),
2156
+ [Target.GoogleTravelHotels]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleTravelHotels]),
2157
+ [Target.GoogleTrendsExplore]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleTrendsExplore]),
2158
+ [Target.GoogleShoppingSearch]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleShoppingSearch]),
2159
+ [Target.GoogleShoppingProduct]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleShoppingProduct]),
2160
+ [Target.Google]: z.fromJSONSchema(requestJsonSchemas[Target.Google]),
2161
+ [Target.GoogleSuggest]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleSuggest]),
2162
+ [Target.GoogleMaps]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleMaps]),
2163
+ [Target.GoogleAiMode]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleAiMode]),
2164
+ [Target.GoogleAds]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleAds]),
2165
+ [Target.GoogleLens]: z.fromJSONSchema(requestJsonSchemas[Target.GoogleLens]),
2166
+ [Target.BingSearch]: z.fromJSONSchema(requestJsonSchemas[Target.BingSearch]),
2167
+ [Target.Bing]: z.fromJSONSchema(requestJsonSchemas[Target.Bing]),
2168
+ [Target.YoutubeTranscript]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeTranscript]),
2169
+ [Target.AmazonProduct]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonProduct]),
2170
+ [Target.AmazonPricing]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonPricing]),
2171
+ [Target.AmazonSearch]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonSearch]),
2172
+ [Target.AmazonSellers]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonSellers]),
2173
+ [Target.AmazonBestsellers]: z.fromJSONSchema(requestJsonSchemas[Target.AmazonBestsellers]),
2174
+ [Target.Amazon]: z.fromJSONSchema(requestJsonSchemas[Target.Amazon]),
2175
+ [Target.Ecommerce]: z.fromJSONSchema(requestJsonSchemas[Target.Ecommerce]),
2176
+ [Target.WalmartProduct]: z.fromJSONSchema(requestJsonSchemas[Target.WalmartProduct]),
2177
+ [Target.WalmartSearch]: z.fromJSONSchema(requestJsonSchemas[Target.WalmartSearch]),
2178
+ [Target.Walmart]: z.fromJSONSchema(requestJsonSchemas[Target.Walmart]),
2179
+ [Target.TargetProduct]: z.fromJSONSchema(requestJsonSchemas[Target.TargetProduct]),
2180
+ [Target.TargetSearch]: z.fromJSONSchema(requestJsonSchemas[Target.TargetSearch]),
2181
+ [Target.Target]: z.fromJSONSchema(requestJsonSchemas[Target.Target]),
2182
+ [Target.LowesSearch]: z.fromJSONSchema(requestJsonSchemas[Target.LowesSearch]),
2183
+ [Target.Universal]: z.fromJSONSchema(requestJsonSchemas[Target.Universal]),
2184
+ [Target.Chatgpt]: z.fromJSONSchema(requestJsonSchemas[Target.Chatgpt]),
2185
+ [Target.Perplexity]: z.fromJSONSchema(requestJsonSchemas[Target.Perplexity]),
2186
+ [Target.Bbb]: z.fromJSONSchema(requestJsonSchemas[Target.Bbb]),
2187
+ [Target.Autotrader]: z.fromJSONSchema(requestJsonSchemas[Target.Autotrader]),
2188
+ [Target.Mobile]: z.fromJSONSchema(requestJsonSchemas[Target.Mobile]),
2189
+ [Target.Airbnb]: z.fromJSONSchema(requestJsonSchemas[Target.Airbnb]),
2190
+ [Target.AppleAppStore]: z.fromJSONSchema(requestJsonSchemas[Target.AppleAppStore]),
2191
+ [Target.InstagramGraphqlProfile]: z.fromJSONSchema(requestJsonSchemas[Target.InstagramGraphqlProfile]),
2192
+ [Target.TiktokPost]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokPost]),
2193
+ [Target.TiktokShopSearch]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokShopSearch]),
2194
+ [Target.TiktokShopProduct]: z.fromJSONSchema(requestJsonSchemas[Target.TiktokShopProduct]),
2195
+ [Target.Tiktok]: z.fromJSONSchema(requestJsonSchemas[Target.Tiktok]),
2196
+ [Target.RedditPost]: z.fromJSONSchema(requestJsonSchemas[Target.RedditPost]),
2197
+ [Target.RedditSubreddit]: z.fromJSONSchema(requestJsonSchemas[Target.RedditSubreddit]),
2198
+ [Target.RedditUser]: z.fromJSONSchema(requestJsonSchemas[Target.RedditUser]),
2199
+ [Target.YoutubeVideo]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeVideo]),
2200
+ [Target.YoutubeMetadata]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeMetadata]),
2201
+ [Target.YoutubeSearch]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSearch]),
2202
+ [Target.YoutubeSearchMax]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSearchMax]),
2203
+ [Target.YoutubeSubtitles]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeSubtitles]),
2204
+ [Target.YoutubeChannel]: z.fromJSONSchema(requestJsonSchemas[Target.YoutubeChannel]),
2205
+ };