@decodo/sdk-ts 2.6.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -25
- package/build/cjs/index.cjs +31 -565
- package/build/cjs/index.d.cts +147 -155
- package/build/esm/api/web-scraping-api.d.ts +3 -2
- package/build/esm/api/web-scraping-api.js +21 -0
- package/build/esm/generated/data-api.d.ts +156 -0
- package/build/esm/generated/parameters.js +3 -13
- package/build/esm/generated/request-schemas.d.ts +0 -427
- package/build/esm/generated/request-schemas.js +0 -478
- package/build/esm/generated/targets.d.ts +1 -144
- package/build/esm/generated/targets.js +1 -73
- package/build/esm/http.js +1 -1
- package/build/esm/index.d.ts +2 -2
- package/build/esm/types/requests.d.ts +3 -0
- package/build/esm/types/responses.d.ts +8 -2
- package/package.json +17 -13
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import { Target } from './targets.js';
|
|
3
3
|
export declare const requestJsonSchemas: {
|
|
4
|
-
readonly universal_ecommerce: {
|
|
5
|
-
readonly type: "object";
|
|
6
|
-
readonly properties: {
|
|
7
|
-
readonly target: {
|
|
8
|
-
readonly const: "universal_ecommerce";
|
|
9
|
-
};
|
|
10
|
-
readonly callback_url: {
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
readonly required: readonly ["target"];
|
|
15
|
-
readonly additionalProperties: false;
|
|
16
|
-
};
|
|
17
4
|
readonly google_search: {
|
|
18
5
|
readonly type: "object";
|
|
19
6
|
readonly properties: {
|
|
@@ -135,138 +122,6 @@ export declare const requestJsonSchemas: {
|
|
|
135
122
|
readonly required: readonly ["target"];
|
|
136
123
|
readonly additionalProperties: false;
|
|
137
124
|
};
|
|
138
|
-
readonly google_trends_explore: {
|
|
139
|
-
readonly type: "object";
|
|
140
|
-
readonly properties: {
|
|
141
|
-
readonly target: {
|
|
142
|
-
readonly const: "google_trends_explore";
|
|
143
|
-
};
|
|
144
|
-
readonly query: {
|
|
145
|
-
readonly type: "string";
|
|
146
|
-
readonly maxLength: 2048;
|
|
147
|
-
};
|
|
148
|
-
readonly geo: {
|
|
149
|
-
readonly type: "string";
|
|
150
|
-
};
|
|
151
|
-
readonly device_type: {
|
|
152
|
-
readonly type: "string";
|
|
153
|
-
};
|
|
154
|
-
readonly search_type: {
|
|
155
|
-
readonly type: "string";
|
|
156
|
-
};
|
|
157
|
-
readonly date_start: {
|
|
158
|
-
readonly type: "string";
|
|
159
|
-
};
|
|
160
|
-
readonly date_end: {
|
|
161
|
-
readonly type: "string";
|
|
162
|
-
};
|
|
163
|
-
readonly callback_url: {
|
|
164
|
-
readonly type: "string";
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
readonly required: readonly ["target"];
|
|
168
|
-
readonly additionalProperties: false;
|
|
169
|
-
};
|
|
170
|
-
readonly google_shopping_search: {
|
|
171
|
-
readonly type: "object";
|
|
172
|
-
readonly properties: {
|
|
173
|
-
readonly target: {
|
|
174
|
-
readonly const: "google_shopping_search";
|
|
175
|
-
};
|
|
176
|
-
readonly query: {
|
|
177
|
-
readonly type: "string";
|
|
178
|
-
readonly maxLength: 2048;
|
|
179
|
-
};
|
|
180
|
-
readonly headless: {
|
|
181
|
-
readonly type: "string";
|
|
182
|
-
readonly enum: readonly ["html", "png"];
|
|
183
|
-
};
|
|
184
|
-
readonly locale: {
|
|
185
|
-
readonly type: "string";
|
|
186
|
-
};
|
|
187
|
-
readonly geo: {
|
|
188
|
-
readonly type: "string";
|
|
189
|
-
};
|
|
190
|
-
readonly device_type: {
|
|
191
|
-
readonly type: "string";
|
|
192
|
-
};
|
|
193
|
-
readonly page_from: {
|
|
194
|
-
readonly type: "number";
|
|
195
|
-
readonly minimum: 0;
|
|
196
|
-
readonly maximum: 100;
|
|
197
|
-
};
|
|
198
|
-
readonly google_tbs: {
|
|
199
|
-
readonly type: "string";
|
|
200
|
-
};
|
|
201
|
-
readonly parse: {
|
|
202
|
-
readonly type: "boolean";
|
|
203
|
-
};
|
|
204
|
-
readonly session_id: {
|
|
205
|
-
readonly type: "string";
|
|
206
|
-
};
|
|
207
|
-
readonly google_results_language: {
|
|
208
|
-
readonly type: "string";
|
|
209
|
-
};
|
|
210
|
-
readonly markdown: {
|
|
211
|
-
readonly type: "boolean";
|
|
212
|
-
};
|
|
213
|
-
readonly callback_url: {
|
|
214
|
-
readonly type: "string";
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
readonly required: readonly ["target"];
|
|
218
|
-
readonly additionalProperties: false;
|
|
219
|
-
};
|
|
220
|
-
readonly google_shopping_product: {
|
|
221
|
-
readonly type: "object";
|
|
222
|
-
readonly properties: {
|
|
223
|
-
readonly target: {
|
|
224
|
-
readonly const: "google_shopping_product";
|
|
225
|
-
};
|
|
226
|
-
readonly query: {
|
|
227
|
-
readonly type: "string";
|
|
228
|
-
readonly maxLength: 2048;
|
|
229
|
-
};
|
|
230
|
-
readonly headless: {
|
|
231
|
-
readonly type: "string";
|
|
232
|
-
readonly enum: readonly ["html", "png"];
|
|
233
|
-
};
|
|
234
|
-
readonly locale: {
|
|
235
|
-
readonly type: "string";
|
|
236
|
-
};
|
|
237
|
-
readonly geo: {
|
|
238
|
-
readonly type: "string";
|
|
239
|
-
};
|
|
240
|
-
readonly device_type: {
|
|
241
|
-
readonly type: "string";
|
|
242
|
-
};
|
|
243
|
-
readonly page_from: {
|
|
244
|
-
readonly type: "number";
|
|
245
|
-
readonly minimum: 0;
|
|
246
|
-
readonly maximum: 100;
|
|
247
|
-
};
|
|
248
|
-
readonly parse: {
|
|
249
|
-
readonly type: "boolean";
|
|
250
|
-
};
|
|
251
|
-
readonly session_id: {
|
|
252
|
-
readonly type: "string";
|
|
253
|
-
};
|
|
254
|
-
readonly google_results_language: {
|
|
255
|
-
readonly type: "string";
|
|
256
|
-
};
|
|
257
|
-
readonly markdown: {
|
|
258
|
-
readonly type: "boolean";
|
|
259
|
-
};
|
|
260
|
-
readonly xhr: {
|
|
261
|
-
readonly type: "boolean";
|
|
262
|
-
};
|
|
263
|
-
readonly callback_url: {
|
|
264
|
-
readonly type: "string";
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
readonly required: readonly ["target"];
|
|
268
|
-
readonly additionalProperties: false;
|
|
269
|
-
};
|
|
270
125
|
readonly google: {
|
|
271
126
|
readonly type: "object";
|
|
272
127
|
readonly properties: {
|
|
@@ -311,88 +166,6 @@ export declare const requestJsonSchemas: {
|
|
|
311
166
|
readonly required: readonly ["target"];
|
|
312
167
|
readonly additionalProperties: false;
|
|
313
168
|
};
|
|
314
|
-
readonly google_suggest: {
|
|
315
|
-
readonly type: "object";
|
|
316
|
-
readonly properties: {
|
|
317
|
-
readonly target: {
|
|
318
|
-
readonly const: "google_suggest";
|
|
319
|
-
};
|
|
320
|
-
readonly query: {
|
|
321
|
-
readonly type: "string";
|
|
322
|
-
readonly maxLength: 2048;
|
|
323
|
-
};
|
|
324
|
-
readonly device_type: {
|
|
325
|
-
readonly type: "string";
|
|
326
|
-
};
|
|
327
|
-
readonly geo: {
|
|
328
|
-
readonly type: "string";
|
|
329
|
-
};
|
|
330
|
-
readonly locale: {
|
|
331
|
-
readonly type: "string";
|
|
332
|
-
};
|
|
333
|
-
readonly session_id: {
|
|
334
|
-
readonly type: "string";
|
|
335
|
-
};
|
|
336
|
-
readonly callback_url: {
|
|
337
|
-
readonly type: "string";
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
readonly required: readonly ["target"];
|
|
341
|
-
readonly additionalProperties: false;
|
|
342
|
-
};
|
|
343
|
-
readonly google_maps: {
|
|
344
|
-
readonly type: "object";
|
|
345
|
-
readonly properties: {
|
|
346
|
-
readonly target: {
|
|
347
|
-
readonly const: "google_maps";
|
|
348
|
-
};
|
|
349
|
-
readonly query: {
|
|
350
|
-
readonly type: "string";
|
|
351
|
-
readonly maxLength: 2048;
|
|
352
|
-
};
|
|
353
|
-
readonly headless: {
|
|
354
|
-
readonly type: "string";
|
|
355
|
-
readonly enum: readonly ["html", "png"];
|
|
356
|
-
};
|
|
357
|
-
readonly geo: {
|
|
358
|
-
readonly type: "string";
|
|
359
|
-
};
|
|
360
|
-
readonly locale: {
|
|
361
|
-
readonly type: "string";
|
|
362
|
-
};
|
|
363
|
-
readonly page_from: {
|
|
364
|
-
readonly type: "number";
|
|
365
|
-
readonly minimum: 0;
|
|
366
|
-
readonly maximum: 100;
|
|
367
|
-
};
|
|
368
|
-
readonly device_type: {
|
|
369
|
-
readonly type: "string";
|
|
370
|
-
};
|
|
371
|
-
readonly session_id: {
|
|
372
|
-
readonly type: "string";
|
|
373
|
-
};
|
|
374
|
-
readonly google_results_language: {
|
|
375
|
-
readonly type: "string";
|
|
376
|
-
};
|
|
377
|
-
readonly google_nfpr: {
|
|
378
|
-
readonly type: "boolean";
|
|
379
|
-
};
|
|
380
|
-
readonly hotel_occupancy: {
|
|
381
|
-
readonly type: "string";
|
|
382
|
-
};
|
|
383
|
-
readonly date_range: {
|
|
384
|
-
readonly type: "string";
|
|
385
|
-
};
|
|
386
|
-
readonly markdown: {
|
|
387
|
-
readonly type: "boolean";
|
|
388
|
-
};
|
|
389
|
-
readonly callback_url: {
|
|
390
|
-
readonly type: "string";
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
readonly required: readonly ["target"];
|
|
394
|
-
readonly additionalProperties: false;
|
|
395
|
-
};
|
|
396
169
|
readonly google_ai_mode: {
|
|
397
170
|
readonly type: "object";
|
|
398
171
|
readonly properties: {
|
|
@@ -624,29 +397,6 @@ export declare const requestJsonSchemas: {
|
|
|
624
397
|
readonly required: readonly ["target"];
|
|
625
398
|
readonly additionalProperties: false;
|
|
626
399
|
};
|
|
627
|
-
readonly youtube_transcript: {
|
|
628
|
-
readonly type: "object";
|
|
629
|
-
readonly properties: {
|
|
630
|
-
readonly target: {
|
|
631
|
-
readonly const: "youtube_transcript";
|
|
632
|
-
};
|
|
633
|
-
readonly query: {
|
|
634
|
-
readonly type: "string";
|
|
635
|
-
readonly maxLength: 2048;
|
|
636
|
-
};
|
|
637
|
-
readonly language_code: {
|
|
638
|
-
readonly type: "string";
|
|
639
|
-
};
|
|
640
|
-
readonly transcript_origin: {
|
|
641
|
-
readonly type: "string";
|
|
642
|
-
};
|
|
643
|
-
readonly callback_url: {
|
|
644
|
-
readonly type: "string";
|
|
645
|
-
};
|
|
646
|
-
};
|
|
647
|
-
readonly required: readonly ["target"];
|
|
648
|
-
readonly additionalProperties: false;
|
|
649
|
-
};
|
|
650
400
|
readonly amazon_product: {
|
|
651
401
|
readonly type: "object";
|
|
652
402
|
readonly properties: {
|
|
@@ -934,42 +684,6 @@ export declare const requestJsonSchemas: {
|
|
|
934
684
|
readonly required: readonly ["target"];
|
|
935
685
|
readonly additionalProperties: false;
|
|
936
686
|
};
|
|
937
|
-
readonly ecommerce: {
|
|
938
|
-
readonly type: "object";
|
|
939
|
-
readonly properties: {
|
|
940
|
-
readonly target: {
|
|
941
|
-
readonly const: "ecommerce";
|
|
942
|
-
};
|
|
943
|
-
readonly url: {
|
|
944
|
-
readonly type: "string";
|
|
945
|
-
readonly maxLength: 2056;
|
|
946
|
-
};
|
|
947
|
-
readonly headless: {
|
|
948
|
-
readonly type: "string";
|
|
949
|
-
readonly enum: readonly ["html", "png"];
|
|
950
|
-
};
|
|
951
|
-
readonly locale: {
|
|
952
|
-
readonly type: "string";
|
|
953
|
-
};
|
|
954
|
-
readonly geo: {
|
|
955
|
-
readonly type: "string";
|
|
956
|
-
};
|
|
957
|
-
readonly device_type: {
|
|
958
|
-
readonly type: "string";
|
|
959
|
-
};
|
|
960
|
-
readonly parse: {
|
|
961
|
-
readonly type: "boolean";
|
|
962
|
-
};
|
|
963
|
-
readonly parser_type: {
|
|
964
|
-
readonly type: "string";
|
|
965
|
-
};
|
|
966
|
-
readonly callback_url: {
|
|
967
|
-
readonly type: "string";
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
readonly required: readonly ["target"];
|
|
971
|
-
readonly additionalProperties: false;
|
|
972
|
-
};
|
|
973
687
|
readonly walmart_product: {
|
|
974
688
|
readonly type: "object";
|
|
975
689
|
readonly properties: {
|
|
@@ -1199,45 +913,6 @@ export declare const requestJsonSchemas: {
|
|
|
1199
913
|
readonly required: readonly ["target"];
|
|
1200
914
|
readonly additionalProperties: false;
|
|
1201
915
|
};
|
|
1202
|
-
readonly lowes_search: {
|
|
1203
|
-
readonly type: "object";
|
|
1204
|
-
readonly properties: {
|
|
1205
|
-
readonly target: {
|
|
1206
|
-
readonly const: "lowes_search";
|
|
1207
|
-
};
|
|
1208
|
-
readonly query: {
|
|
1209
|
-
readonly type: "string";
|
|
1210
|
-
readonly maxLength: 2048;
|
|
1211
|
-
};
|
|
1212
|
-
readonly lowes_store_id: {
|
|
1213
|
-
readonly type: "string";
|
|
1214
|
-
};
|
|
1215
|
-
readonly headless: {
|
|
1216
|
-
readonly type: "string";
|
|
1217
|
-
readonly enum: readonly ["html", "png"];
|
|
1218
|
-
};
|
|
1219
|
-
readonly delivery_zip: {
|
|
1220
|
-
readonly type: "string";
|
|
1221
|
-
};
|
|
1222
|
-
readonly user_agent_type: {
|
|
1223
|
-
readonly type: "string";
|
|
1224
|
-
};
|
|
1225
|
-
readonly free_delivery: {
|
|
1226
|
-
readonly type: "boolean";
|
|
1227
|
-
};
|
|
1228
|
-
readonly pickup_today: {
|
|
1229
|
-
readonly type: "boolean";
|
|
1230
|
-
};
|
|
1231
|
-
readonly delivery_today_tomorrow: {
|
|
1232
|
-
readonly type: "boolean";
|
|
1233
|
-
};
|
|
1234
|
-
readonly callback_url: {
|
|
1235
|
-
readonly type: "string";
|
|
1236
|
-
};
|
|
1237
|
-
};
|
|
1238
|
-
readonly required: readonly ["target"];
|
|
1239
|
-
readonly additionalProperties: false;
|
|
1240
|
-
};
|
|
1241
916
|
readonly universal: {
|
|
1242
917
|
readonly type: "object";
|
|
1243
918
|
readonly properties: {
|
|
@@ -1563,23 +1238,6 @@ export declare const requestJsonSchemas: {
|
|
|
1563
1238
|
readonly required: readonly ["target"];
|
|
1564
1239
|
readonly additionalProperties: false;
|
|
1565
1240
|
};
|
|
1566
|
-
readonly instagram_graphql_profile: {
|
|
1567
|
-
readonly type: "object";
|
|
1568
|
-
readonly properties: {
|
|
1569
|
-
readonly target: {
|
|
1570
|
-
readonly const: "instagram_graphql_profile";
|
|
1571
|
-
};
|
|
1572
|
-
readonly query: {
|
|
1573
|
-
readonly type: "string";
|
|
1574
|
-
readonly maxLength: 2048;
|
|
1575
|
-
};
|
|
1576
|
-
readonly callback_url: {
|
|
1577
|
-
readonly type: "string";
|
|
1578
|
-
};
|
|
1579
|
-
};
|
|
1580
|
-
readonly required: readonly ["target"];
|
|
1581
|
-
readonly additionalProperties: false;
|
|
1582
|
-
};
|
|
1583
1241
|
readonly tiktok_post: {
|
|
1584
1242
|
readonly type: "object";
|
|
1585
1243
|
readonly properties: {
|
|
@@ -1758,26 +1416,6 @@ export declare const requestJsonSchemas: {
|
|
|
1758
1416
|
readonly required: readonly ["target"];
|
|
1759
1417
|
readonly additionalProperties: false;
|
|
1760
1418
|
};
|
|
1761
|
-
readonly youtube_video: {
|
|
1762
|
-
readonly type: "object";
|
|
1763
|
-
readonly properties: {
|
|
1764
|
-
readonly target: {
|
|
1765
|
-
readonly const: "youtube_video";
|
|
1766
|
-
};
|
|
1767
|
-
readonly query: {
|
|
1768
|
-
readonly type: "string";
|
|
1769
|
-
readonly maxLength: 2048;
|
|
1770
|
-
};
|
|
1771
|
-
readonly geo: {
|
|
1772
|
-
readonly type: "string";
|
|
1773
|
-
};
|
|
1774
|
-
readonly callback_url: {
|
|
1775
|
-
readonly type: "string";
|
|
1776
|
-
};
|
|
1777
|
-
};
|
|
1778
|
-
readonly required: readonly ["target"];
|
|
1779
|
-
readonly additionalProperties: false;
|
|
1780
|
-
};
|
|
1781
1419
|
readonly youtube_metadata: {
|
|
1782
1420
|
readonly type: "object";
|
|
1783
1421
|
readonly properties: {
|
|
@@ -1857,71 +1495,6 @@ export declare const requestJsonSchemas: {
|
|
|
1857
1495
|
readonly required: readonly ["target"];
|
|
1858
1496
|
readonly additionalProperties: false;
|
|
1859
1497
|
};
|
|
1860
|
-
readonly youtube_search_max: {
|
|
1861
|
-
readonly type: "object";
|
|
1862
|
-
readonly properties: {
|
|
1863
|
-
readonly "360": {
|
|
1864
|
-
readonly type: "boolean";
|
|
1865
|
-
};
|
|
1866
|
-
readonly target: {
|
|
1867
|
-
readonly const: "youtube_search_max";
|
|
1868
|
-
};
|
|
1869
|
-
readonly query: {
|
|
1870
|
-
readonly type: "string";
|
|
1871
|
-
readonly maxLength: 2048;
|
|
1872
|
-
};
|
|
1873
|
-
readonly upload_date: {
|
|
1874
|
-
readonly type: "string";
|
|
1875
|
-
};
|
|
1876
|
-
readonly type: {
|
|
1877
|
-
readonly type: "string";
|
|
1878
|
-
};
|
|
1879
|
-
readonly duration: {
|
|
1880
|
-
readonly type: "string";
|
|
1881
|
-
};
|
|
1882
|
-
readonly video_sort_by: {
|
|
1883
|
-
readonly type: "string";
|
|
1884
|
-
};
|
|
1885
|
-
readonly "3d": {
|
|
1886
|
-
readonly type: "boolean";
|
|
1887
|
-
};
|
|
1888
|
-
readonly "4k": {
|
|
1889
|
-
readonly type: "boolean";
|
|
1890
|
-
};
|
|
1891
|
-
readonly creative_commons: {
|
|
1892
|
-
readonly type: "boolean";
|
|
1893
|
-
};
|
|
1894
|
-
readonly hd: {
|
|
1895
|
-
readonly type: "boolean";
|
|
1896
|
-
};
|
|
1897
|
-
readonly hdr: {
|
|
1898
|
-
readonly type: "boolean";
|
|
1899
|
-
};
|
|
1900
|
-
readonly vr180: {
|
|
1901
|
-
readonly type: "boolean";
|
|
1902
|
-
};
|
|
1903
|
-
readonly live: {
|
|
1904
|
-
readonly type: "boolean";
|
|
1905
|
-
};
|
|
1906
|
-
readonly location: {
|
|
1907
|
-
readonly type: "boolean";
|
|
1908
|
-
};
|
|
1909
|
-
readonly purchased: {
|
|
1910
|
-
readonly type: "boolean";
|
|
1911
|
-
};
|
|
1912
|
-
readonly subtitles: {
|
|
1913
|
-
readonly type: "boolean";
|
|
1914
|
-
};
|
|
1915
|
-
readonly markdown: {
|
|
1916
|
-
readonly type: "boolean";
|
|
1917
|
-
};
|
|
1918
|
-
readonly callback_url: {
|
|
1919
|
-
readonly type: "string";
|
|
1920
|
-
};
|
|
1921
|
-
};
|
|
1922
|
-
readonly required: readonly ["target"];
|
|
1923
|
-
readonly additionalProperties: false;
|
|
1924
|
-
};
|
|
1925
1498
|
readonly youtube_subtitles: {
|
|
1926
1499
|
readonly type: "object";
|
|
1927
1500
|
readonly properties: {
|