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