@search1api/client 0.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.
@@ -0,0 +1,1269 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/search": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get?: never;
14
+ put?: never;
15
+ /** Search the web using multiple search engines */
16
+ post: operations["search"];
17
+ delete?: never;
18
+ options?: never;
19
+ head?: never;
20
+ patch?: never;
21
+ trace?: never;
22
+ };
23
+ "/news": {
24
+ parameters: {
25
+ query?: never;
26
+ header?: never;
27
+ path?: never;
28
+ cookie?: never;
29
+ };
30
+ get?: never;
31
+ put?: never;
32
+ /** Search news articles across multiple sources */
33
+ post: operations["news"];
34
+ delete?: never;
35
+ options?: never;
36
+ head?: never;
37
+ patch?: never;
38
+ trace?: never;
39
+ };
40
+ "/crawl": {
41
+ parameters: {
42
+ query?: never;
43
+ header?: never;
44
+ path?: never;
45
+ cookie?: never;
46
+ };
47
+ get?: never;
48
+ put?: never;
49
+ /** Crawl a URL and extract its content */
50
+ post: operations["crawl"];
51
+ delete?: never;
52
+ options?: never;
53
+ head?: never;
54
+ patch?: never;
55
+ trace?: never;
56
+ };
57
+ "/sitemap": {
58
+ parameters: {
59
+ query?: never;
60
+ header?: never;
61
+ path?: never;
62
+ cookie?: never;
63
+ };
64
+ get?: never;
65
+ put?: never;
66
+ /** Extract sitemap URLs from a website */
67
+ post: operations["sitemap"];
68
+ delete?: never;
69
+ options?: never;
70
+ head?: never;
71
+ patch?: never;
72
+ trace?: never;
73
+ };
74
+ "/trending": {
75
+ parameters: {
76
+ query?: never;
77
+ header?: never;
78
+ path?: never;
79
+ cookie?: never;
80
+ };
81
+ get?: never;
82
+ put?: never;
83
+ /** Get trending topics from various platforms */
84
+ post: operations["trending"];
85
+ delete?: never;
86
+ options?: never;
87
+ head?: never;
88
+ patch?: never;
89
+ trace?: never;
90
+ };
91
+ "/extract": {
92
+ parameters: {
93
+ query?: never;
94
+ header?: never;
95
+ path?: never;
96
+ cookie?: never;
97
+ };
98
+ get?: never;
99
+ put?: never;
100
+ /** Extract structured content from a URL */
101
+ post: operations["extract"];
102
+ delete?: never;
103
+ options?: never;
104
+ head?: never;
105
+ patch?: never;
106
+ trace?: never;
107
+ };
108
+ "/deepcrawl": {
109
+ parameters: {
110
+ query?: never;
111
+ header?: never;
112
+ path?: never;
113
+ cookie?: never;
114
+ };
115
+ get?: never;
116
+ put?: never;
117
+ /** Deep crawl a website across multiple pages */
118
+ post: operations["deepcrawl"];
119
+ delete?: never;
120
+ options?: never;
121
+ head?: never;
122
+ patch?: never;
123
+ trace?: never;
124
+ };
125
+ "/deepcrawl/status/{taskId}": {
126
+ parameters: {
127
+ query?: never;
128
+ header?: never;
129
+ path?: never;
130
+ cookie?: never;
131
+ };
132
+ /** Check deepcrawl task status */
133
+ get: operations["deepcrawlStatus"];
134
+ put?: never;
135
+ post?: never;
136
+ delete?: never;
137
+ options?: never;
138
+ head?: never;
139
+ patch?: never;
140
+ trace?: never;
141
+ };
142
+ "/health": {
143
+ parameters: {
144
+ query?: never;
145
+ header?: never;
146
+ path?: never;
147
+ cookie?: never;
148
+ };
149
+ /** Health check */
150
+ get: operations["health"];
151
+ put?: never;
152
+ post?: never;
153
+ delete?: never;
154
+ options?: never;
155
+ head?: never;
156
+ patch?: never;
157
+ trace?: never;
158
+ };
159
+ "/usage": {
160
+ parameters: {
161
+ query?: never;
162
+ header?: never;
163
+ path?: never;
164
+ cookie?: never;
165
+ };
166
+ /** Get API key usage statistics */
167
+ get: operations["usage"];
168
+ put?: never;
169
+ post?: never;
170
+ delete?: never;
171
+ options?: never;
172
+ head?: never;
173
+ patch?: never;
174
+ trace?: never;
175
+ };
176
+ }
177
+ export type webhooks = Record<string, never>;
178
+ export interface components {
179
+ schemas: {
180
+ /** @description Search1API error. Payment challenges may use RFC 9457 problem detail fields. */
181
+ ApiError: {
182
+ /** @enum {boolean} */
183
+ ok?: false;
184
+ error?: string;
185
+ message?: string;
186
+ errors?: {
187
+ field?: string;
188
+ message?: string;
189
+ code?: string;
190
+ }[];
191
+ /** Format: uri */
192
+ type?: string;
193
+ title?: string;
194
+ status?: number;
195
+ detail?: string;
196
+ } & {
197
+ [key: string]: unknown;
198
+ };
199
+ SearchParameters: {
200
+ query: string;
201
+ /** @enum {string} */
202
+ search_service?: "google" | "bing" | "duckduckgo" | "yahoo" | "youtube" | "x" | "reddit" | "github" | "arxiv" | "wechat" | "bilibili" | "imdb" | "wikipedia" | "" | "sogou" | "baidu" | "360" | "quark";
203
+ /** @default 5 */
204
+ max_results: number;
205
+ /** @default 0 */
206
+ crawl_results: number;
207
+ /** @default false */
208
+ image: boolean;
209
+ /** @default [] */
210
+ include_sites: string[];
211
+ /** @default [] */
212
+ exclude_sites: string[];
213
+ language?: string;
214
+ /** @enum {string} */
215
+ time_range?: "day" | "week" | "month" | "year" | "";
216
+ };
217
+ NewsParameters: {
218
+ query: string;
219
+ /** @enum {string} */
220
+ search_service?: "google" | "bing" | "duckduckgo" | "yahoo" | "hackernews" | "" | "reuters";
221
+ /** @default 5 */
222
+ max_results: number;
223
+ /** @default 0 */
224
+ crawl_results: number;
225
+ /** @default false */
226
+ image: boolean;
227
+ /** @default [] */
228
+ include_sites: string[];
229
+ /** @default [] */
230
+ exclude_sites: string[];
231
+ language?: string;
232
+ /** @enum {string} */
233
+ time_range?: "day" | "week" | "month" | "year" | "";
234
+ };
235
+ CrawlRequest: {
236
+ /** Format: uri */
237
+ url: string;
238
+ /** @default false */
239
+ enableFallback: boolean;
240
+ };
241
+ SitemapRequest: {
242
+ /** Format: uri */
243
+ url: string;
244
+ /** @enum {string} */
245
+ type?: "sitemap" | "all";
246
+ };
247
+ TrendingRequest: {
248
+ search_service: string;
249
+ max_results?: number;
250
+ };
251
+ ExtractRequest: {
252
+ /** Format: uri */
253
+ url: string;
254
+ prompt?: string;
255
+ response_format?: {
256
+ [key: string]: unknown;
257
+ };
258
+ };
259
+ DeepcrawlRequest: {
260
+ /** Format: uri */
261
+ url: string;
262
+ /** @enum {string} */
263
+ type?: "sitemap" | "all";
264
+ };
265
+ SearchResult: {
266
+ title: string;
267
+ /** Format: uri */
268
+ link: string;
269
+ snippet: string;
270
+ content?: string;
271
+ } & {
272
+ [key: string]: unknown;
273
+ };
274
+ SearchResponse: {
275
+ searchParameters: components["schemas"]["SearchParameters"];
276
+ results: components["schemas"]["SearchResult"][];
277
+ images?: string[];
278
+ };
279
+ SearchBatchResponse: {
280
+ results: {
281
+ success: boolean;
282
+ data?: components["schemas"]["SearchResponse"];
283
+ error?: {
284
+ message?: string;
285
+ statusCode?: number;
286
+ };
287
+ cost: number;
288
+ }[];
289
+ summary: {
290
+ total: number;
291
+ successful: number;
292
+ failed: number;
293
+ totalCost: number;
294
+ };
295
+ };
296
+ NewsResponse: {
297
+ searchParameters: components["schemas"]["NewsParameters"];
298
+ results: components["schemas"]["SearchResult"][];
299
+ images?: string[];
300
+ };
301
+ NewsBatchResponse: {
302
+ results: {
303
+ success: boolean;
304
+ data?: components["schemas"]["NewsResponse"];
305
+ error?: {
306
+ message?: string;
307
+ statusCode?: number;
308
+ };
309
+ cost: number;
310
+ }[];
311
+ summary: {
312
+ total: number;
313
+ successful: number;
314
+ failed: number;
315
+ totalCost: number;
316
+ };
317
+ };
318
+ CrawlResult: {
319
+ title: string;
320
+ /** Format: uri */
321
+ link: string;
322
+ content: string;
323
+ metadata?: {
324
+ [key: string]: unknown;
325
+ };
326
+ } & {
327
+ [key: string]: unknown;
328
+ };
329
+ CrawlResponse: {
330
+ crawlParameters: {
331
+ /** Format: uri */
332
+ url: string;
333
+ };
334
+ results: components["schemas"]["CrawlResult"];
335
+ };
336
+ SitemapResponse: {
337
+ links: string[];
338
+ };
339
+ TrendingResult: {
340
+ title: string;
341
+ /** Format: uri */
342
+ url: string;
343
+ description?: string | null;
344
+ };
345
+ TrendingResponse: {
346
+ trendingParameters: components["schemas"]["TrendingRequest"];
347
+ results: components["schemas"]["TrendingResult"][];
348
+ };
349
+ ExtractResponse: {
350
+ /** @enum {boolean} */
351
+ success: true;
352
+ extractParameters: {
353
+ /** Format: uri */
354
+ url: string;
355
+ };
356
+ results: unknown;
357
+ };
358
+ DeepcrawlAcceptedResponse: {
359
+ taskId: string;
360
+ /** @enum {string} */
361
+ status: "queued";
362
+ };
363
+ DeepcrawlStatusResponse: {
364
+ taskId: string;
365
+ /** @enum {string} */
366
+ status?: "queued" | "waiting" | "processing" | "completed" | "failed" | "not_found";
367
+ success?: boolean;
368
+ message?: string;
369
+ error?: string | null;
370
+ r2Key?: string;
371
+ /** Format: uri */
372
+ zipUrl?: string | null;
373
+ } & {
374
+ [key: string]: unknown;
375
+ };
376
+ HealthResponse: {
377
+ status: string;
378
+ /** Format: date-time */
379
+ timestamp?: string;
380
+ version?: string;
381
+ };
382
+ UsageResponse: {
383
+ usage: number;
384
+ user_id?: string | null;
385
+ /** @enum {string} */
386
+ credential_type: "api_key" | "oauth";
387
+ client_id?: string | null;
388
+ };
389
+ };
390
+ responses: never;
391
+ parameters: never;
392
+ requestBodies: never;
393
+ headers: never;
394
+ pathItems: never;
395
+ }
396
+ export type $defs = Record<string, never>;
397
+ export interface operations {
398
+ search: {
399
+ parameters: {
400
+ query?: never;
401
+ header?: never;
402
+ path?: never;
403
+ cookie?: never;
404
+ };
405
+ requestBody: {
406
+ content: {
407
+ "application/json": {
408
+ query: string;
409
+ /** @enum {string} */
410
+ search_service?: "google" | "bing" | "duckduckgo" | "yahoo" | "youtube" | "x" | "reddit" | "github" | "arxiv" | "wechat" | "bilibili" | "imdb" | "wikipedia" | "" | "sogou" | "baidu" | "360" | "quark";
411
+ /** @default 5 */
412
+ max_results?: number;
413
+ /** @default 0 */
414
+ crawl_results?: number;
415
+ /** @default false */
416
+ image?: boolean;
417
+ /** @default [] */
418
+ include_sites?: string[];
419
+ /** @default [] */
420
+ exclude_sites?: string[];
421
+ language?: string;
422
+ /** @enum {string} */
423
+ time_range?: "day" | "week" | "month" | "year" | "";
424
+ } | {
425
+ query: string;
426
+ /** @enum {string} */
427
+ search_service?: "google" | "bing" | "duckduckgo" | "yahoo" | "youtube" | "x" | "reddit" | "github" | "arxiv" | "wechat" | "bilibili" | "imdb" | "wikipedia" | "" | "sogou" | "baidu" | "360" | "quark";
428
+ /** @default 5 */
429
+ max_results?: number;
430
+ /** @default 0 */
431
+ crawl_results?: number;
432
+ /** @default false */
433
+ image?: boolean;
434
+ /** @default [] */
435
+ include_sites?: string[];
436
+ /** @default [] */
437
+ exclude_sites?: string[];
438
+ language?: string;
439
+ /** @enum {string} */
440
+ time_range?: "day" | "week" | "month" | "year" | "";
441
+ }[];
442
+ };
443
+ };
444
+ responses: {
445
+ /** @description Successful response */
446
+ 200: {
447
+ headers: {
448
+ [name: string]: unknown;
449
+ };
450
+ content: {
451
+ "application/json": components["schemas"]["SearchResponse"] | components["schemas"]["SearchBatchResponse"];
452
+ };
453
+ };
454
+ /** @description Bad Request */
455
+ 400: {
456
+ headers: {
457
+ [name: string]: unknown;
458
+ };
459
+ content: {
460
+ "application/json": components["schemas"]["ApiError"];
461
+ };
462
+ };
463
+ /** @description Unauthorized */
464
+ 401: {
465
+ headers: {
466
+ [name: string]: unknown;
467
+ };
468
+ content: {
469
+ "application/json": components["schemas"]["ApiError"];
470
+ };
471
+ };
472
+ /** @description Payment Required */
473
+ 402: {
474
+ headers: {
475
+ [name: string]: unknown;
476
+ };
477
+ content: {
478
+ "application/problem+json": components["schemas"]["ApiError"];
479
+ };
480
+ };
481
+ /** @description Not Found */
482
+ 404: {
483
+ headers: {
484
+ [name: string]: unknown;
485
+ };
486
+ content: {
487
+ "application/json": components["schemas"]["ApiError"];
488
+ };
489
+ };
490
+ /** @description Validation Error */
491
+ 422: {
492
+ headers: {
493
+ [name: string]: unknown;
494
+ };
495
+ content: {
496
+ "application/json": components["schemas"]["ApiError"];
497
+ };
498
+ };
499
+ /** @description Too Many Requests */
500
+ 429: {
501
+ headers: {
502
+ [name: string]: unknown;
503
+ };
504
+ content: {
505
+ "application/json": components["schemas"]["ApiError"];
506
+ };
507
+ };
508
+ /** @description Internal Server Error */
509
+ 500: {
510
+ headers: {
511
+ [name: string]: unknown;
512
+ };
513
+ content: {
514
+ "application/json": components["schemas"]["ApiError"];
515
+ };
516
+ };
517
+ /** @description Bad Gateway */
518
+ 502: {
519
+ headers: {
520
+ [name: string]: unknown;
521
+ };
522
+ content: {
523
+ "application/json": components["schemas"]["ApiError"];
524
+ };
525
+ };
526
+ };
527
+ };
528
+ news: {
529
+ parameters: {
530
+ query?: never;
531
+ header?: never;
532
+ path?: never;
533
+ cookie?: never;
534
+ };
535
+ requestBody: {
536
+ content: {
537
+ "application/json": {
538
+ query: string;
539
+ /** @enum {string} */
540
+ search_service?: "google" | "bing" | "duckduckgo" | "yahoo" | "hackernews" | "" | "reuters";
541
+ /** @default 5 */
542
+ max_results?: number;
543
+ /** @default 0 */
544
+ crawl_results?: number;
545
+ /** @default false */
546
+ image?: boolean;
547
+ /** @default [] */
548
+ include_sites?: string[];
549
+ /** @default [] */
550
+ exclude_sites?: string[];
551
+ language?: string;
552
+ /** @enum {string} */
553
+ time_range?: "day" | "week" | "month" | "year" | "";
554
+ } | {
555
+ query: string;
556
+ /** @enum {string} */
557
+ search_service?: "google" | "bing" | "duckduckgo" | "yahoo" | "hackernews" | "" | "reuters";
558
+ /** @default 5 */
559
+ max_results?: number;
560
+ /** @default 0 */
561
+ crawl_results?: number;
562
+ /** @default false */
563
+ image?: boolean;
564
+ /** @default [] */
565
+ include_sites?: string[];
566
+ /** @default [] */
567
+ exclude_sites?: string[];
568
+ language?: string;
569
+ /** @enum {string} */
570
+ time_range?: "day" | "week" | "month" | "year" | "";
571
+ }[];
572
+ };
573
+ };
574
+ responses: {
575
+ /** @description Successful response */
576
+ 200: {
577
+ headers: {
578
+ [name: string]: unknown;
579
+ };
580
+ content: {
581
+ "application/json": components["schemas"]["NewsResponse"] | components["schemas"]["NewsBatchResponse"];
582
+ };
583
+ };
584
+ /** @description Bad Request */
585
+ 400: {
586
+ headers: {
587
+ [name: string]: unknown;
588
+ };
589
+ content: {
590
+ "application/json": components["schemas"]["ApiError"];
591
+ };
592
+ };
593
+ /** @description Unauthorized */
594
+ 401: {
595
+ headers: {
596
+ [name: string]: unknown;
597
+ };
598
+ content: {
599
+ "application/json": components["schemas"]["ApiError"];
600
+ };
601
+ };
602
+ /** @description Payment Required */
603
+ 402: {
604
+ headers: {
605
+ [name: string]: unknown;
606
+ };
607
+ content: {
608
+ "application/problem+json": components["schemas"]["ApiError"];
609
+ };
610
+ };
611
+ /** @description Not Found */
612
+ 404: {
613
+ headers: {
614
+ [name: string]: unknown;
615
+ };
616
+ content: {
617
+ "application/json": components["schemas"]["ApiError"];
618
+ };
619
+ };
620
+ /** @description Validation Error */
621
+ 422: {
622
+ headers: {
623
+ [name: string]: unknown;
624
+ };
625
+ content: {
626
+ "application/json": components["schemas"]["ApiError"];
627
+ };
628
+ };
629
+ /** @description Too Many Requests */
630
+ 429: {
631
+ headers: {
632
+ [name: string]: unknown;
633
+ };
634
+ content: {
635
+ "application/json": components["schemas"]["ApiError"];
636
+ };
637
+ };
638
+ /** @description Internal Server Error */
639
+ 500: {
640
+ headers: {
641
+ [name: string]: unknown;
642
+ };
643
+ content: {
644
+ "application/json": components["schemas"]["ApiError"];
645
+ };
646
+ };
647
+ /** @description Bad Gateway */
648
+ 502: {
649
+ headers: {
650
+ [name: string]: unknown;
651
+ };
652
+ content: {
653
+ "application/json": components["schemas"]["ApiError"];
654
+ };
655
+ };
656
+ };
657
+ };
658
+ crawl: {
659
+ parameters: {
660
+ query?: never;
661
+ header?: never;
662
+ path?: never;
663
+ cookie?: never;
664
+ };
665
+ requestBody: {
666
+ content: {
667
+ "application/json": {
668
+ /** Format: uri */
669
+ url: string;
670
+ /** @default false */
671
+ enableFallback?: boolean;
672
+ } | {
673
+ /** Format: uri */
674
+ url: string;
675
+ /** @default false */
676
+ enableFallback?: boolean;
677
+ }[];
678
+ };
679
+ };
680
+ responses: {
681
+ /** @description Successful response */
682
+ 200: {
683
+ headers: {
684
+ [name: string]: unknown;
685
+ };
686
+ content: {
687
+ "application/json": components["schemas"]["CrawlResponse"] | components["schemas"]["CrawlResponse"][];
688
+ };
689
+ };
690
+ /** @description Bad Request */
691
+ 400: {
692
+ headers: {
693
+ [name: string]: unknown;
694
+ };
695
+ content: {
696
+ "application/json": components["schemas"]["ApiError"];
697
+ };
698
+ };
699
+ /** @description Unauthorized */
700
+ 401: {
701
+ headers: {
702
+ [name: string]: unknown;
703
+ };
704
+ content: {
705
+ "application/json": components["schemas"]["ApiError"];
706
+ };
707
+ };
708
+ /** @description Payment Required */
709
+ 402: {
710
+ headers: {
711
+ [name: string]: unknown;
712
+ };
713
+ content: {
714
+ "application/problem+json": components["schemas"]["ApiError"];
715
+ };
716
+ };
717
+ /** @description Validation Error */
718
+ 422: {
719
+ headers: {
720
+ [name: string]: unknown;
721
+ };
722
+ content: {
723
+ "application/json": components["schemas"]["ApiError"];
724
+ };
725
+ };
726
+ /** @description Too Many Requests */
727
+ 429: {
728
+ headers: {
729
+ [name: string]: unknown;
730
+ };
731
+ content: {
732
+ "application/json": components["schemas"]["ApiError"];
733
+ };
734
+ };
735
+ /** @description Internal Server Error */
736
+ 500: {
737
+ headers: {
738
+ [name: string]: unknown;
739
+ };
740
+ content: {
741
+ "application/json": components["schemas"]["ApiError"];
742
+ };
743
+ };
744
+ /** @description Bad Gateway */
745
+ 502: {
746
+ headers: {
747
+ [name: string]: unknown;
748
+ };
749
+ content: {
750
+ "application/json": components["schemas"]["ApiError"];
751
+ };
752
+ };
753
+ };
754
+ };
755
+ sitemap: {
756
+ parameters: {
757
+ query?: never;
758
+ header?: never;
759
+ path?: never;
760
+ cookie?: never;
761
+ };
762
+ requestBody: {
763
+ content: {
764
+ "application/json": {
765
+ /** Format: uri */
766
+ url: string;
767
+ /** @enum {string} */
768
+ type?: "sitemap" | "all";
769
+ };
770
+ };
771
+ };
772
+ responses: {
773
+ /** @description Successful response */
774
+ 200: {
775
+ headers: {
776
+ [name: string]: unknown;
777
+ };
778
+ content: {
779
+ "application/json": components["schemas"]["SitemapResponse"];
780
+ };
781
+ };
782
+ /** @description Bad Request */
783
+ 400: {
784
+ headers: {
785
+ [name: string]: unknown;
786
+ };
787
+ content: {
788
+ "application/json": components["schemas"]["ApiError"];
789
+ };
790
+ };
791
+ /** @description Unauthorized */
792
+ 401: {
793
+ headers: {
794
+ [name: string]: unknown;
795
+ };
796
+ content: {
797
+ "application/json": components["schemas"]["ApiError"];
798
+ };
799
+ };
800
+ /** @description Payment Required */
801
+ 402: {
802
+ headers: {
803
+ [name: string]: unknown;
804
+ };
805
+ content: {
806
+ "application/problem+json": components["schemas"]["ApiError"];
807
+ };
808
+ };
809
+ /** @description Validation Error */
810
+ 422: {
811
+ headers: {
812
+ [name: string]: unknown;
813
+ };
814
+ content: {
815
+ "application/json": components["schemas"]["ApiError"];
816
+ };
817
+ };
818
+ /** @description Too Many Requests */
819
+ 429: {
820
+ headers: {
821
+ [name: string]: unknown;
822
+ };
823
+ content: {
824
+ "application/json": components["schemas"]["ApiError"];
825
+ };
826
+ };
827
+ /** @description Internal Server Error */
828
+ 500: {
829
+ headers: {
830
+ [name: string]: unknown;
831
+ };
832
+ content: {
833
+ "application/json": components["schemas"]["ApiError"];
834
+ };
835
+ };
836
+ /** @description Bad Gateway */
837
+ 502: {
838
+ headers: {
839
+ [name: string]: unknown;
840
+ };
841
+ content: {
842
+ "application/json": components["schemas"]["ApiError"];
843
+ };
844
+ };
845
+ };
846
+ };
847
+ trending: {
848
+ parameters: {
849
+ query?: never;
850
+ header?: never;
851
+ path?: never;
852
+ cookie?: never;
853
+ };
854
+ requestBody: {
855
+ content: {
856
+ "application/json": {
857
+ search_service: string;
858
+ max_results?: number;
859
+ };
860
+ };
861
+ };
862
+ responses: {
863
+ /** @description Successful response */
864
+ 200: {
865
+ headers: {
866
+ [name: string]: unknown;
867
+ };
868
+ content: {
869
+ "application/json": components["schemas"]["TrendingResponse"];
870
+ };
871
+ };
872
+ /** @description Bad Request */
873
+ 400: {
874
+ headers: {
875
+ [name: string]: unknown;
876
+ };
877
+ content: {
878
+ "application/json": components["schemas"]["ApiError"];
879
+ };
880
+ };
881
+ /** @description Unauthorized */
882
+ 401: {
883
+ headers: {
884
+ [name: string]: unknown;
885
+ };
886
+ content: {
887
+ "application/json": components["schemas"]["ApiError"];
888
+ };
889
+ };
890
+ /** @description Payment Required */
891
+ 402: {
892
+ headers: {
893
+ [name: string]: unknown;
894
+ };
895
+ content: {
896
+ "application/problem+json": components["schemas"]["ApiError"];
897
+ };
898
+ };
899
+ /** @description Validation Error */
900
+ 422: {
901
+ headers: {
902
+ [name: string]: unknown;
903
+ };
904
+ content: {
905
+ "application/json": components["schemas"]["ApiError"];
906
+ };
907
+ };
908
+ /** @description Too Many Requests */
909
+ 429: {
910
+ headers: {
911
+ [name: string]: unknown;
912
+ };
913
+ content: {
914
+ "application/json": components["schemas"]["ApiError"];
915
+ };
916
+ };
917
+ /** @description Internal Server Error */
918
+ 500: {
919
+ headers: {
920
+ [name: string]: unknown;
921
+ };
922
+ content: {
923
+ "application/json": components["schemas"]["ApiError"];
924
+ };
925
+ };
926
+ /** @description Bad Gateway */
927
+ 502: {
928
+ headers: {
929
+ [name: string]: unknown;
930
+ };
931
+ content: {
932
+ "application/json": components["schemas"]["ApiError"];
933
+ };
934
+ };
935
+ };
936
+ };
937
+ extract: {
938
+ parameters: {
939
+ query?: never;
940
+ header?: never;
941
+ path?: never;
942
+ cookie?: never;
943
+ };
944
+ requestBody: {
945
+ content: {
946
+ "application/json": {
947
+ /** Format: uri */
948
+ url: string;
949
+ prompt?: string;
950
+ response_format?: {
951
+ [key: string]: unknown;
952
+ };
953
+ };
954
+ };
955
+ };
956
+ responses: {
957
+ /** @description Successful response */
958
+ 200: {
959
+ headers: {
960
+ [name: string]: unknown;
961
+ };
962
+ content: {
963
+ "application/json": components["schemas"]["ExtractResponse"];
964
+ };
965
+ };
966
+ /** @description Bad Request */
967
+ 400: {
968
+ headers: {
969
+ [name: string]: unknown;
970
+ };
971
+ content: {
972
+ "application/json": components["schemas"]["ApiError"];
973
+ };
974
+ };
975
+ /** @description Unauthorized */
976
+ 401: {
977
+ headers: {
978
+ [name: string]: unknown;
979
+ };
980
+ content: {
981
+ "application/json": components["schemas"]["ApiError"];
982
+ };
983
+ };
984
+ /** @description Payment Required */
985
+ 402: {
986
+ headers: {
987
+ [name: string]: unknown;
988
+ };
989
+ content: {
990
+ "application/problem+json": components["schemas"]["ApiError"];
991
+ };
992
+ };
993
+ /** @description Validation Error */
994
+ 422: {
995
+ headers: {
996
+ [name: string]: unknown;
997
+ };
998
+ content: {
999
+ "application/json": components["schemas"]["ApiError"];
1000
+ };
1001
+ };
1002
+ /** @description Too Many Requests */
1003
+ 429: {
1004
+ headers: {
1005
+ [name: string]: unknown;
1006
+ };
1007
+ content: {
1008
+ "application/json": components["schemas"]["ApiError"];
1009
+ };
1010
+ };
1011
+ /** @description Internal Server Error */
1012
+ 500: {
1013
+ headers: {
1014
+ [name: string]: unknown;
1015
+ };
1016
+ content: {
1017
+ "application/json": components["schemas"]["ApiError"];
1018
+ };
1019
+ };
1020
+ /** @description Bad Gateway */
1021
+ 502: {
1022
+ headers: {
1023
+ [name: string]: unknown;
1024
+ };
1025
+ content: {
1026
+ "application/json": components["schemas"]["ApiError"];
1027
+ };
1028
+ };
1029
+ };
1030
+ };
1031
+ deepcrawl: {
1032
+ parameters: {
1033
+ query?: never;
1034
+ header?: never;
1035
+ path?: never;
1036
+ cookie?: never;
1037
+ };
1038
+ requestBody: {
1039
+ content: {
1040
+ "application/json": {
1041
+ /** Format: uri */
1042
+ url: string;
1043
+ /** @enum {string} */
1044
+ type?: "sitemap" | "all";
1045
+ };
1046
+ };
1047
+ };
1048
+ responses: {
1049
+ /** @description Successful response */
1050
+ 202: {
1051
+ headers: {
1052
+ [name: string]: unknown;
1053
+ };
1054
+ content: {
1055
+ "application/json": components["schemas"]["DeepcrawlAcceptedResponse"];
1056
+ };
1057
+ };
1058
+ /** @description Bad Request */
1059
+ 400: {
1060
+ headers: {
1061
+ [name: string]: unknown;
1062
+ };
1063
+ content: {
1064
+ "application/json": components["schemas"]["ApiError"];
1065
+ };
1066
+ };
1067
+ /** @description Unauthorized */
1068
+ 401: {
1069
+ headers: {
1070
+ [name: string]: unknown;
1071
+ };
1072
+ content: {
1073
+ "application/json": components["schemas"]["ApiError"];
1074
+ };
1075
+ };
1076
+ /** @description Payment Required */
1077
+ 402: {
1078
+ headers: {
1079
+ [name: string]: unknown;
1080
+ };
1081
+ content: {
1082
+ "application/problem+json": components["schemas"]["ApiError"];
1083
+ };
1084
+ };
1085
+ /** @description Validation Error */
1086
+ 422: {
1087
+ headers: {
1088
+ [name: string]: unknown;
1089
+ };
1090
+ content: {
1091
+ "application/json": components["schemas"]["ApiError"];
1092
+ };
1093
+ };
1094
+ /** @description Too Many Requests */
1095
+ 429: {
1096
+ headers: {
1097
+ [name: string]: unknown;
1098
+ };
1099
+ content: {
1100
+ "application/json": components["schemas"]["ApiError"];
1101
+ };
1102
+ };
1103
+ /** @description Internal Server Error */
1104
+ 500: {
1105
+ headers: {
1106
+ [name: string]: unknown;
1107
+ };
1108
+ content: {
1109
+ "application/json": components["schemas"]["ApiError"];
1110
+ };
1111
+ };
1112
+ /** @description Bad Gateway */
1113
+ 502: {
1114
+ headers: {
1115
+ [name: string]: unknown;
1116
+ };
1117
+ content: {
1118
+ "application/json": components["schemas"]["ApiError"];
1119
+ };
1120
+ };
1121
+ };
1122
+ };
1123
+ deepcrawlStatus: {
1124
+ parameters: {
1125
+ query?: never;
1126
+ header?: never;
1127
+ path: {
1128
+ taskId: string;
1129
+ };
1130
+ cookie?: never;
1131
+ };
1132
+ requestBody?: never;
1133
+ responses: {
1134
+ /** @description Successful response */
1135
+ 200: {
1136
+ headers: {
1137
+ [name: string]: unknown;
1138
+ };
1139
+ content: {
1140
+ "application/json": components["schemas"]["DeepcrawlStatusResponse"];
1141
+ };
1142
+ };
1143
+ /** @description Bad Request */
1144
+ 400: {
1145
+ headers: {
1146
+ [name: string]: unknown;
1147
+ };
1148
+ content: {
1149
+ "application/json": components["schemas"]["ApiError"];
1150
+ };
1151
+ };
1152
+ /** @description Not Found */
1153
+ 404: {
1154
+ headers: {
1155
+ [name: string]: unknown;
1156
+ };
1157
+ content: {
1158
+ "application/json": components["schemas"]["ApiError"];
1159
+ };
1160
+ };
1161
+ /** @description Internal Server Error */
1162
+ 500: {
1163
+ headers: {
1164
+ [name: string]: unknown;
1165
+ };
1166
+ content: {
1167
+ "application/json": components["schemas"]["ApiError"];
1168
+ };
1169
+ };
1170
+ /** @description Bad Gateway */
1171
+ 502: {
1172
+ headers: {
1173
+ [name: string]: unknown;
1174
+ };
1175
+ content: {
1176
+ "application/json": components["schemas"]["ApiError"];
1177
+ };
1178
+ };
1179
+ };
1180
+ };
1181
+ health: {
1182
+ parameters: {
1183
+ query?: never;
1184
+ header?: never;
1185
+ path?: never;
1186
+ cookie?: never;
1187
+ };
1188
+ requestBody?: never;
1189
+ responses: {
1190
+ /** @description Successful response */
1191
+ 200: {
1192
+ headers: {
1193
+ [name: string]: unknown;
1194
+ };
1195
+ content: {
1196
+ "application/json": components["schemas"]["HealthResponse"];
1197
+ };
1198
+ };
1199
+ /** @description Internal Server Error */
1200
+ 500: {
1201
+ headers: {
1202
+ [name: string]: unknown;
1203
+ };
1204
+ content: {
1205
+ "application/json": components["schemas"]["ApiError"];
1206
+ };
1207
+ };
1208
+ };
1209
+ };
1210
+ usage: {
1211
+ parameters: {
1212
+ query?: {
1213
+ period?: "day" | "week" | "month" | "year";
1214
+ };
1215
+ header?: never;
1216
+ path?: never;
1217
+ cookie?: never;
1218
+ };
1219
+ requestBody?: never;
1220
+ responses: {
1221
+ /** @description Successful response */
1222
+ 200: {
1223
+ headers: {
1224
+ [name: string]: unknown;
1225
+ };
1226
+ content: {
1227
+ "application/json": components["schemas"]["UsageResponse"];
1228
+ };
1229
+ };
1230
+ /** @description Bad Request */
1231
+ 400: {
1232
+ headers: {
1233
+ [name: string]: unknown;
1234
+ };
1235
+ content: {
1236
+ "application/json": components["schemas"]["ApiError"];
1237
+ };
1238
+ };
1239
+ /** @description Unauthorized */
1240
+ 401: {
1241
+ headers: {
1242
+ [name: string]: unknown;
1243
+ };
1244
+ content: {
1245
+ "application/json": components["schemas"]["ApiError"];
1246
+ };
1247
+ };
1248
+ /** @description Too Many Requests */
1249
+ 429: {
1250
+ headers: {
1251
+ [name: string]: unknown;
1252
+ };
1253
+ content: {
1254
+ "application/json": components["schemas"]["ApiError"];
1255
+ };
1256
+ };
1257
+ /** @description Internal Server Error */
1258
+ 500: {
1259
+ headers: {
1260
+ [name: string]: unknown;
1261
+ };
1262
+ content: {
1263
+ "application/json": components["schemas"]["ApiError"];
1264
+ };
1265
+ };
1266
+ };
1267
+ };
1268
+ }
1269
+ //# sourceMappingURL=generated.d.ts.map