web-access-cli 0.1.0 → 0.2.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.
@@ -1,435 +1,1402 @@
1
1
  {
2
- "type": "object",
3
- "required": [
4
- "schemaVersion",
5
- "ok",
6
- "command",
7
- "durationMs"
8
- ],
9
- "properties": {
10
- "schemaVersion": {
11
- "type": "number",
12
- "const": 1
13
- },
14
- "ok": {
15
- "type": "boolean"
16
- },
17
- "command": {
18
- "anyOf": [
19
- {
20
- "anyOf": [
21
- {
22
- "type": "string",
23
- "const": "search"
24
- },
25
- {
26
- "type": "string",
27
- "const": "extract"
28
- },
29
- {
30
- "type": "string",
31
- "const": "providers"
32
- },
33
- {
34
- "type": "string",
35
- "const": "doctor"
36
- },
37
- {
38
- "type": "string",
39
- "const": "config.edit"
40
- }
41
- ]
42
- },
43
- {
44
- "type": "null"
45
- }
46
- ]
47
- },
48
- "durationMs": {
49
- "type": "integer",
50
- "minimum": 0
51
- },
52
- "request": {},
53
- "provider": {
2
+ "anyOf": [
3
+ {
54
4
  "type": "object",
55
5
  "required": [
56
- "id",
57
- "type"
6
+ "schemaVersion",
7
+ "ok",
8
+ "provider",
9
+ "data"
58
10
  ],
59
11
  "properties": {
60
- "id": {
12
+ "schemaVersion": {
13
+ "type": "number",
14
+ "const": 2
15
+ },
16
+ "ok": {
17
+ "type": "boolean",
18
+ "const": true
19
+ },
20
+ "provider": {
61
21
  "type": "string"
62
22
  },
63
- "type": {
64
- "anyOf": [
65
- {
66
- "type": "string",
67
- "const": "tavily"
68
- },
69
- {
70
- "type": "string",
71
- "const": "exa"
72
- },
73
- {
74
- "type": "string",
75
- "const": "brave"
76
- },
77
- {
78
- "type": "string",
79
- "const": "searxng"
80
- },
81
- {
82
- "type": "string",
83
- "const": "firecrawl"
84
- },
85
- {
86
- "type": "string",
87
- "const": "jina"
88
- },
89
- {
90
- "type": "string",
91
- "const": "http"
92
- },
93
- {
94
- "type": "string",
95
- "const": "anysearch"
96
- },
97
- {
98
- "type": "string",
99
- "const": "xcrawl"
100
- }
101
- ]
102
- }
103
- }
104
- },
105
- "attempts": {
106
- "type": "array",
107
- "items": {
108
- "type": "object",
109
- "required": [
110
- "provider",
111
- "status",
112
- "durationMs"
113
- ],
114
- "properties": {
115
- "provider": {
116
- "type": "object",
117
- "required": [
118
- "id",
119
- "type"
120
- ],
121
- "properties": {
122
- "id": {
123
- "type": "string"
124
- },
125
- "type": {
126
- "anyOf": [
127
- {
128
- "type": "string",
129
- "const": "tavily"
130
- },
131
- {
132
- "type": "string",
133
- "const": "exa"
134
- },
135
- {
136
- "type": "string",
137
- "const": "brave"
138
- },
139
- {
140
- "type": "string",
141
- "const": "searxng"
142
- },
143
- {
144
- "type": "string",
145
- "const": "firecrawl"
146
- },
147
- {
148
- "type": "string",
149
- "const": "jina"
23
+ "data": {
24
+ "type": "object",
25
+ "required": [
26
+ "results"
27
+ ],
28
+ "properties": {
29
+ "results": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "required": [
34
+ "rank",
35
+ "title",
36
+ "url",
37
+ "snippet"
38
+ ],
39
+ "properties": {
40
+ "rank": {
41
+ "type": "integer",
42
+ "minimum": 1
150
43
  },
151
- {
152
- "type": "string",
153
- "const": "http"
44
+ "title": {
45
+ "type": "string"
154
46
  },
155
- {
47
+ "url": {
156
48
  "type": "string",
157
- "const": "anysearch"
49
+ "format": "uri"
158
50
  },
159
- {
160
- "type": "string",
161
- "const": "xcrawl"
51
+ "snippet": {
52
+ "type": "string"
162
53
  }
163
- ]
54
+ }
164
55
  }
165
56
  }
166
- },
167
- "status": {
168
- "anyOf": [
169
- {
170
- "type": "string",
171
- "const": "success"
172
- },
173
- {
174
- "type": "string",
175
- "const": "failed"
176
- }
177
- ]
178
- },
179
- "durationMs": {
180
- "type": "integer",
181
- "minimum": 0
182
- },
183
- "error": {
57
+ }
58
+ },
59
+ "warnings": {
60
+ "type": "array",
61
+ "items": {
184
62
  "type": "object",
185
63
  "required": [
186
64
  "code",
187
- "message",
188
- "retryable"
65
+ "message"
189
66
  ],
190
67
  "properties": {
191
68
  "code": {
192
- "type": "string"
69
+ "anyOf": [
70
+ {
71
+ "type": "string",
72
+ "const": "provider_order_update_failed"
73
+ }
74
+ ]
193
75
  },
194
76
  "message": {
195
77
  "type": "string"
196
- },
197
- "retryable": {
198
- "type": "boolean"
199
- },
200
- "provider": {
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "debug": {
83
+ "type": "object",
84
+ "required": [
85
+ "request",
86
+ "durationMs",
87
+ "attempts"
88
+ ],
89
+ "properties": {
90
+ "request": {},
91
+ "durationMs": {
92
+ "type": "integer",
93
+ "minimum": 0
94
+ },
95
+ "provider": {
96
+ "type": "object",
97
+ "required": [
98
+ "id",
99
+ "type"
100
+ ],
101
+ "properties": {
102
+ "id": {
103
+ "type": "string"
104
+ },
105
+ "type": {
106
+ "anyOf": [
107
+ {
108
+ "type": "string",
109
+ "const": "tavily"
110
+ },
111
+ {
112
+ "type": "string",
113
+ "const": "exa"
114
+ },
115
+ {
116
+ "type": "string",
117
+ "const": "brave"
118
+ },
119
+ {
120
+ "type": "string",
121
+ "const": "searxng"
122
+ },
123
+ {
124
+ "type": "string",
125
+ "const": "firecrawl"
126
+ },
127
+ {
128
+ "type": "string",
129
+ "const": "jina"
130
+ },
131
+ {
132
+ "type": "string",
133
+ "const": "http"
134
+ },
135
+ {
136
+ "type": "string",
137
+ "const": "anysearch"
138
+ },
139
+ {
140
+ "type": "string",
141
+ "const": "xcrawl"
142
+ },
143
+ {
144
+ "type": "string",
145
+ "const": "deepseek"
146
+ }
147
+ ]
148
+ }
149
+ }
150
+ },
151
+ "attempts": {
152
+ "type": "array",
153
+ "items": {
201
154
  "type": "object",
202
155
  "required": [
203
- "id",
204
- "type"
156
+ "provider",
157
+ "status",
158
+ "durationMs"
205
159
  ],
206
160
  "properties": {
207
- "id": {
208
- "type": "string"
161
+ "provider": {
162
+ "type": "object",
163
+ "required": [
164
+ "id",
165
+ "type"
166
+ ],
167
+ "properties": {
168
+ "id": {
169
+ "type": "string"
170
+ },
171
+ "type": {
172
+ "anyOf": [
173
+ {
174
+ "type": "string",
175
+ "const": "tavily"
176
+ },
177
+ {
178
+ "type": "string",
179
+ "const": "exa"
180
+ },
181
+ {
182
+ "type": "string",
183
+ "const": "brave"
184
+ },
185
+ {
186
+ "type": "string",
187
+ "const": "searxng"
188
+ },
189
+ {
190
+ "type": "string",
191
+ "const": "firecrawl"
192
+ },
193
+ {
194
+ "type": "string",
195
+ "const": "jina"
196
+ },
197
+ {
198
+ "type": "string",
199
+ "const": "http"
200
+ },
201
+ {
202
+ "type": "string",
203
+ "const": "anysearch"
204
+ },
205
+ {
206
+ "type": "string",
207
+ "const": "xcrawl"
208
+ },
209
+ {
210
+ "type": "string",
211
+ "const": "deepseek"
212
+ }
213
+ ]
214
+ }
215
+ }
209
216
  },
210
- "type": {
217
+ "status": {
211
218
  "anyOf": [
212
219
  {
213
220
  "type": "string",
214
- "const": "tavily"
221
+ "const": "success"
215
222
  },
216
223
  {
217
224
  "type": "string",
218
- "const": "exa"
225
+ "const": "failed"
226
+ }
227
+ ]
228
+ },
229
+ "durationMs": {
230
+ "type": "integer",
231
+ "minimum": 0
232
+ },
233
+ "error": {
234
+ "type": "object",
235
+ "required": [
236
+ "code",
237
+ "message",
238
+ "retryable"
239
+ ],
240
+ "properties": {
241
+ "code": {
242
+ "type": "string"
219
243
  },
220
- {
221
- "type": "string",
222
- "const": "brave"
244
+ "message": {
245
+ "type": "string"
223
246
  },
224
- {
225
- "type": "string",
226
- "const": "searxng"
247
+ "retryable": {
248
+ "type": "boolean"
227
249
  },
228
- {
229
- "type": "string",
230
- "const": "firecrawl"
250
+ "provider": {
251
+ "type": "object",
252
+ "required": [
253
+ "id",
254
+ "type"
255
+ ],
256
+ "properties": {
257
+ "id": {
258
+ "type": "string"
259
+ },
260
+ "type": {
261
+ "anyOf": [
262
+ {
263
+ "type": "string",
264
+ "const": "tavily"
265
+ },
266
+ {
267
+ "type": "string",
268
+ "const": "exa"
269
+ },
270
+ {
271
+ "type": "string",
272
+ "const": "brave"
273
+ },
274
+ {
275
+ "type": "string",
276
+ "const": "searxng"
277
+ },
278
+ {
279
+ "type": "string",
280
+ "const": "firecrawl"
281
+ },
282
+ {
283
+ "type": "string",
284
+ "const": "jina"
285
+ },
286
+ {
287
+ "type": "string",
288
+ "const": "http"
289
+ },
290
+ {
291
+ "type": "string",
292
+ "const": "anysearch"
293
+ },
294
+ {
295
+ "type": "string",
296
+ "const": "xcrawl"
297
+ },
298
+ {
299
+ "type": "string",
300
+ "const": "deepseek"
301
+ }
302
+ ]
303
+ }
304
+ }
231
305
  },
232
- {
233
- "type": "string",
234
- "const": "jina"
306
+ "httpStatus": {
307
+ "type": "integer"
235
308
  },
236
- {
237
- "type": "string",
238
- "const": "http"
309
+ "details": {}
310
+ }
311
+ }
312
+ }
313
+ }
314
+ },
315
+ "raw": {},
316
+ "partial": {
317
+ "type": "object",
318
+ "required": [
319
+ "provider",
320
+ "raw"
321
+ ],
322
+ "properties": {
323
+ "provider": {
324
+ "type": "object",
325
+ "required": [
326
+ "id",
327
+ "type"
328
+ ],
329
+ "properties": {
330
+ "id": {
331
+ "type": "string"
332
+ },
333
+ "type": {
334
+ "anyOf": [
335
+ {
336
+ "type": "string",
337
+ "const": "tavily"
338
+ },
339
+ {
340
+ "type": "string",
341
+ "const": "exa"
342
+ },
343
+ {
344
+ "type": "string",
345
+ "const": "brave"
346
+ },
347
+ {
348
+ "type": "string",
349
+ "const": "searxng"
350
+ },
351
+ {
352
+ "type": "string",
353
+ "const": "firecrawl"
354
+ },
355
+ {
356
+ "type": "string",
357
+ "const": "jina"
358
+ },
359
+ {
360
+ "type": "string",
361
+ "const": "http"
362
+ },
363
+ {
364
+ "type": "string",
365
+ "const": "anysearch"
366
+ },
367
+ {
368
+ "type": "string",
369
+ "const": "xcrawl"
370
+ },
371
+ {
372
+ "type": "string",
373
+ "const": "deepseek"
374
+ }
375
+ ]
376
+ }
377
+ }
378
+ },
379
+ "raw": {}
380
+ }
381
+ }
382
+ }
383
+ }
384
+ }
385
+ },
386
+ {
387
+ "type": "object",
388
+ "required": [
389
+ "schemaVersion",
390
+ "ok",
391
+ "provider",
392
+ "data"
393
+ ],
394
+ "properties": {
395
+ "schemaVersion": {
396
+ "type": "number",
397
+ "const": 2
398
+ },
399
+ "ok": {
400
+ "type": "boolean",
401
+ "const": true
402
+ },
403
+ "provider": {
404
+ "type": "string"
405
+ },
406
+ "data": {
407
+ "type": "object",
408
+ "required": [
409
+ "document"
410
+ ],
411
+ "properties": {
412
+ "document": {
413
+ "type": "object",
414
+ "required": [
415
+ "sourceUrl",
416
+ "title",
417
+ "content",
418
+ "contentType"
419
+ ],
420
+ "properties": {
421
+ "sourceUrl": {
422
+ "type": "string",
423
+ "format": "uri"
424
+ },
425
+ "title": {
426
+ "type": "string"
427
+ },
428
+ "content": {
429
+ "type": "string"
430
+ },
431
+ "contentType": {
432
+ "type": "string",
433
+ "const": "text/markdown"
434
+ }
435
+ }
436
+ }
437
+ }
438
+ },
439
+ "warnings": {
440
+ "type": "array",
441
+ "items": {
442
+ "type": "object",
443
+ "required": [
444
+ "code",
445
+ "message"
446
+ ],
447
+ "properties": {
448
+ "code": {
449
+ "anyOf": [
450
+ {
451
+ "type": "string",
452
+ "const": "provider_order_update_failed"
453
+ }
454
+ ]
455
+ },
456
+ "message": {
457
+ "type": "string"
458
+ }
459
+ }
460
+ }
461
+ },
462
+ "debug": {
463
+ "type": "object",
464
+ "required": [
465
+ "request",
466
+ "durationMs",
467
+ "attempts"
468
+ ],
469
+ "properties": {
470
+ "request": {},
471
+ "durationMs": {
472
+ "type": "integer",
473
+ "minimum": 0
474
+ },
475
+ "provider": {
476
+ "type": "object",
477
+ "required": [
478
+ "id",
479
+ "type"
480
+ ],
481
+ "properties": {
482
+ "id": {
483
+ "type": "string"
484
+ },
485
+ "type": {
486
+ "anyOf": [
487
+ {
488
+ "type": "string",
489
+ "const": "tavily"
490
+ },
491
+ {
492
+ "type": "string",
493
+ "const": "exa"
494
+ },
495
+ {
496
+ "type": "string",
497
+ "const": "brave"
498
+ },
499
+ {
500
+ "type": "string",
501
+ "const": "searxng"
502
+ },
503
+ {
504
+ "type": "string",
505
+ "const": "firecrawl"
506
+ },
507
+ {
508
+ "type": "string",
509
+ "const": "jina"
510
+ },
511
+ {
512
+ "type": "string",
513
+ "const": "http"
514
+ },
515
+ {
516
+ "type": "string",
517
+ "const": "anysearch"
518
+ },
519
+ {
520
+ "type": "string",
521
+ "const": "xcrawl"
522
+ },
523
+ {
524
+ "type": "string",
525
+ "const": "deepseek"
526
+ }
527
+ ]
528
+ }
529
+ }
530
+ },
531
+ "attempts": {
532
+ "type": "array",
533
+ "items": {
534
+ "type": "object",
535
+ "required": [
536
+ "provider",
537
+ "status",
538
+ "durationMs"
539
+ ],
540
+ "properties": {
541
+ "provider": {
542
+ "type": "object",
543
+ "required": [
544
+ "id",
545
+ "type"
546
+ ],
547
+ "properties": {
548
+ "id": {
549
+ "type": "string"
239
550
  },
551
+ "type": {
552
+ "anyOf": [
553
+ {
554
+ "type": "string",
555
+ "const": "tavily"
556
+ },
557
+ {
558
+ "type": "string",
559
+ "const": "exa"
560
+ },
561
+ {
562
+ "type": "string",
563
+ "const": "brave"
564
+ },
565
+ {
566
+ "type": "string",
567
+ "const": "searxng"
568
+ },
569
+ {
570
+ "type": "string",
571
+ "const": "firecrawl"
572
+ },
573
+ {
574
+ "type": "string",
575
+ "const": "jina"
576
+ },
577
+ {
578
+ "type": "string",
579
+ "const": "http"
580
+ },
581
+ {
582
+ "type": "string",
583
+ "const": "anysearch"
584
+ },
585
+ {
586
+ "type": "string",
587
+ "const": "xcrawl"
588
+ },
589
+ {
590
+ "type": "string",
591
+ "const": "deepseek"
592
+ }
593
+ ]
594
+ }
595
+ }
596
+ },
597
+ "status": {
598
+ "anyOf": [
240
599
  {
241
600
  "type": "string",
242
- "const": "anysearch"
601
+ "const": "success"
243
602
  },
244
603
  {
245
604
  "type": "string",
246
- "const": "xcrawl"
605
+ "const": "failed"
247
606
  }
248
607
  ]
608
+ },
609
+ "durationMs": {
610
+ "type": "integer",
611
+ "minimum": 0
612
+ },
613
+ "error": {
614
+ "type": "object",
615
+ "required": [
616
+ "code",
617
+ "message",
618
+ "retryable"
619
+ ],
620
+ "properties": {
621
+ "code": {
622
+ "type": "string"
623
+ },
624
+ "message": {
625
+ "type": "string"
626
+ },
627
+ "retryable": {
628
+ "type": "boolean"
629
+ },
630
+ "provider": {
631
+ "type": "object",
632
+ "required": [
633
+ "id",
634
+ "type"
635
+ ],
636
+ "properties": {
637
+ "id": {
638
+ "type": "string"
639
+ },
640
+ "type": {
641
+ "anyOf": [
642
+ {
643
+ "type": "string",
644
+ "const": "tavily"
645
+ },
646
+ {
647
+ "type": "string",
648
+ "const": "exa"
649
+ },
650
+ {
651
+ "type": "string",
652
+ "const": "brave"
653
+ },
654
+ {
655
+ "type": "string",
656
+ "const": "searxng"
657
+ },
658
+ {
659
+ "type": "string",
660
+ "const": "firecrawl"
661
+ },
662
+ {
663
+ "type": "string",
664
+ "const": "jina"
665
+ },
666
+ {
667
+ "type": "string",
668
+ "const": "http"
669
+ },
670
+ {
671
+ "type": "string",
672
+ "const": "anysearch"
673
+ },
674
+ {
675
+ "type": "string",
676
+ "const": "xcrawl"
677
+ },
678
+ {
679
+ "type": "string",
680
+ "const": "deepseek"
681
+ }
682
+ ]
683
+ }
684
+ }
685
+ },
686
+ "httpStatus": {
687
+ "type": "integer"
688
+ },
689
+ "details": {}
690
+ }
249
691
  }
250
692
  }
251
- },
252
- "httpStatus": {
253
- "type": "integer"
254
- },
255
- "details": {}
693
+ }
694
+ },
695
+ "raw": {},
696
+ "partial": {
697
+ "type": "object",
698
+ "required": [
699
+ "provider",
700
+ "raw"
701
+ ],
702
+ "properties": {
703
+ "provider": {
704
+ "type": "object",
705
+ "required": [
706
+ "id",
707
+ "type"
708
+ ],
709
+ "properties": {
710
+ "id": {
711
+ "type": "string"
712
+ },
713
+ "type": {
714
+ "anyOf": [
715
+ {
716
+ "type": "string",
717
+ "const": "tavily"
718
+ },
719
+ {
720
+ "type": "string",
721
+ "const": "exa"
722
+ },
723
+ {
724
+ "type": "string",
725
+ "const": "brave"
726
+ },
727
+ {
728
+ "type": "string",
729
+ "const": "searxng"
730
+ },
731
+ {
732
+ "type": "string",
733
+ "const": "firecrawl"
734
+ },
735
+ {
736
+ "type": "string",
737
+ "const": "jina"
738
+ },
739
+ {
740
+ "type": "string",
741
+ "const": "http"
742
+ },
743
+ {
744
+ "type": "string",
745
+ "const": "anysearch"
746
+ },
747
+ {
748
+ "type": "string",
749
+ "const": "xcrawl"
750
+ },
751
+ {
752
+ "type": "string",
753
+ "const": "deepseek"
754
+ }
755
+ ]
756
+ }
757
+ }
758
+ },
759
+ "raw": {}
760
+ }
256
761
  }
257
762
  }
258
763
  }
259
764
  }
260
765
  },
261
- "data": {},
262
- "raw": {},
263
- "error": {
766
+ {
264
767
  "type": "object",
265
768
  "required": [
266
- "code",
267
- "message",
268
- "retryable"
769
+ "schemaVersion",
770
+ "ok",
771
+ "error"
269
772
  ],
270
773
  "properties": {
271
- "code": {
272
- "type": "string"
774
+ "schemaVersion": {
775
+ "type": "number",
776
+ "const": 2
273
777
  },
274
- "message": {
275
- "type": "string"
778
+ "ok": {
779
+ "type": "boolean",
780
+ "const": false
276
781
  },
277
- "retryable": {
278
- "type": "boolean"
782
+ "error": {
783
+ "type": "object",
784
+ "required": [
785
+ "code",
786
+ "message",
787
+ "retryable"
788
+ ],
789
+ "properties": {
790
+ "code": {
791
+ "type": "string"
792
+ },
793
+ "message": {
794
+ "type": "string"
795
+ },
796
+ "retryable": {
797
+ "type": "boolean"
798
+ }
799
+ }
279
800
  },
280
- "provider": {
801
+ "attempts": {
802
+ "type": "array",
803
+ "items": {
804
+ "type": "object",
805
+ "required": [
806
+ "provider",
807
+ "code"
808
+ ],
809
+ "properties": {
810
+ "provider": {
811
+ "type": "string"
812
+ },
813
+ "code": {
814
+ "type": "string"
815
+ },
816
+ "httpStatus": {
817
+ "type": "integer"
818
+ }
819
+ }
820
+ }
821
+ },
822
+ "partial": {
281
823
  "type": "object",
282
824
  "required": [
283
- "id",
284
- "type"
825
+ "provider",
826
+ "data"
285
827
  ],
286
828
  "properties": {
287
- "id": {
829
+ "provider": {
288
830
  "type": "string"
289
831
  },
290
- "type": {
291
- "anyOf": [
292
- {
293
- "type": "string",
294
- "const": "tavily"
295
- },
296
- {
297
- "type": "string",
298
- "const": "exa"
299
- },
300
- {
301
- "type": "string",
302
- "const": "brave"
303
- },
304
- {
305
- "type": "string",
306
- "const": "searxng"
307
- },
308
- {
309
- "type": "string",
310
- "const": "firecrawl"
311
- },
312
- {
313
- "type": "string",
314
- "const": "jina"
315
- },
316
- {
317
- "type": "string",
318
- "const": "http"
319
- },
320
- {
321
- "type": "string",
322
- "const": "anysearch"
832
+ "data": {
833
+ "type": "object",
834
+ "required": [
835
+ "document"
836
+ ],
837
+ "properties": {
838
+ "document": {
839
+ "type": "object",
840
+ "required": [
841
+ "sourceUrl",
842
+ "title",
843
+ "content",
844
+ "contentType"
845
+ ],
846
+ "properties": {
847
+ "sourceUrl": {
848
+ "type": "string",
849
+ "format": "uri"
850
+ },
851
+ "title": {
852
+ "type": "string"
853
+ },
854
+ "content": {
855
+ "type": "string"
856
+ },
857
+ "contentType": {
858
+ "type": "string",
859
+ "const": "text/markdown"
860
+ }
861
+ }
862
+ }
863
+ }
864
+ }
865
+ }
866
+ },
867
+ "warnings": {
868
+ "type": "array",
869
+ "items": {
870
+ "type": "object",
871
+ "required": [
872
+ "code",
873
+ "message"
874
+ ],
875
+ "properties": {
876
+ "code": {
877
+ "anyOf": [
878
+ {
879
+ "type": "string",
880
+ "const": "provider_order_update_failed"
881
+ }
882
+ ]
883
+ },
884
+ "message": {
885
+ "type": "string"
886
+ }
887
+ }
888
+ }
889
+ },
890
+ "debug": {
891
+ "type": "object",
892
+ "required": [
893
+ "request",
894
+ "durationMs",
895
+ "attempts"
896
+ ],
897
+ "properties": {
898
+ "request": {},
899
+ "durationMs": {
900
+ "type": "integer",
901
+ "minimum": 0
902
+ },
903
+ "provider": {
904
+ "type": "object",
905
+ "required": [
906
+ "id",
907
+ "type"
908
+ ],
909
+ "properties": {
910
+ "id": {
911
+ "type": "string"
323
912
  },
324
- {
325
- "type": "string",
326
- "const": "xcrawl"
913
+ "type": {
914
+ "anyOf": [
915
+ {
916
+ "type": "string",
917
+ "const": "tavily"
918
+ },
919
+ {
920
+ "type": "string",
921
+ "const": "exa"
922
+ },
923
+ {
924
+ "type": "string",
925
+ "const": "brave"
926
+ },
927
+ {
928
+ "type": "string",
929
+ "const": "searxng"
930
+ },
931
+ {
932
+ "type": "string",
933
+ "const": "firecrawl"
934
+ },
935
+ {
936
+ "type": "string",
937
+ "const": "jina"
938
+ },
939
+ {
940
+ "type": "string",
941
+ "const": "http"
942
+ },
943
+ {
944
+ "type": "string",
945
+ "const": "anysearch"
946
+ },
947
+ {
948
+ "type": "string",
949
+ "const": "xcrawl"
950
+ },
951
+ {
952
+ "type": "string",
953
+ "const": "deepseek"
954
+ }
955
+ ]
327
956
  }
328
- ]
957
+ }
958
+ },
959
+ "attempts": {
960
+ "type": "array",
961
+ "items": {
962
+ "type": "object",
963
+ "required": [
964
+ "provider",
965
+ "status",
966
+ "durationMs"
967
+ ],
968
+ "properties": {
969
+ "provider": {
970
+ "type": "object",
971
+ "required": [
972
+ "id",
973
+ "type"
974
+ ],
975
+ "properties": {
976
+ "id": {
977
+ "type": "string"
978
+ },
979
+ "type": {
980
+ "anyOf": [
981
+ {
982
+ "type": "string",
983
+ "const": "tavily"
984
+ },
985
+ {
986
+ "type": "string",
987
+ "const": "exa"
988
+ },
989
+ {
990
+ "type": "string",
991
+ "const": "brave"
992
+ },
993
+ {
994
+ "type": "string",
995
+ "const": "searxng"
996
+ },
997
+ {
998
+ "type": "string",
999
+ "const": "firecrawl"
1000
+ },
1001
+ {
1002
+ "type": "string",
1003
+ "const": "jina"
1004
+ },
1005
+ {
1006
+ "type": "string",
1007
+ "const": "http"
1008
+ },
1009
+ {
1010
+ "type": "string",
1011
+ "const": "anysearch"
1012
+ },
1013
+ {
1014
+ "type": "string",
1015
+ "const": "xcrawl"
1016
+ },
1017
+ {
1018
+ "type": "string",
1019
+ "const": "deepseek"
1020
+ }
1021
+ ]
1022
+ }
1023
+ }
1024
+ },
1025
+ "status": {
1026
+ "anyOf": [
1027
+ {
1028
+ "type": "string",
1029
+ "const": "success"
1030
+ },
1031
+ {
1032
+ "type": "string",
1033
+ "const": "failed"
1034
+ }
1035
+ ]
1036
+ },
1037
+ "durationMs": {
1038
+ "type": "integer",
1039
+ "minimum": 0
1040
+ },
1041
+ "error": {
1042
+ "type": "object",
1043
+ "required": [
1044
+ "code",
1045
+ "message",
1046
+ "retryable"
1047
+ ],
1048
+ "properties": {
1049
+ "code": {
1050
+ "type": "string"
1051
+ },
1052
+ "message": {
1053
+ "type": "string"
1054
+ },
1055
+ "retryable": {
1056
+ "type": "boolean"
1057
+ },
1058
+ "provider": {
1059
+ "type": "object",
1060
+ "required": [
1061
+ "id",
1062
+ "type"
1063
+ ],
1064
+ "properties": {
1065
+ "id": {
1066
+ "type": "string"
1067
+ },
1068
+ "type": {
1069
+ "anyOf": [
1070
+ {
1071
+ "type": "string",
1072
+ "const": "tavily"
1073
+ },
1074
+ {
1075
+ "type": "string",
1076
+ "const": "exa"
1077
+ },
1078
+ {
1079
+ "type": "string",
1080
+ "const": "brave"
1081
+ },
1082
+ {
1083
+ "type": "string",
1084
+ "const": "searxng"
1085
+ },
1086
+ {
1087
+ "type": "string",
1088
+ "const": "firecrawl"
1089
+ },
1090
+ {
1091
+ "type": "string",
1092
+ "const": "jina"
1093
+ },
1094
+ {
1095
+ "type": "string",
1096
+ "const": "http"
1097
+ },
1098
+ {
1099
+ "type": "string",
1100
+ "const": "anysearch"
1101
+ },
1102
+ {
1103
+ "type": "string",
1104
+ "const": "xcrawl"
1105
+ },
1106
+ {
1107
+ "type": "string",
1108
+ "const": "deepseek"
1109
+ }
1110
+ ]
1111
+ }
1112
+ }
1113
+ },
1114
+ "httpStatus": {
1115
+ "type": "integer"
1116
+ },
1117
+ "details": {}
1118
+ }
1119
+ }
1120
+ }
1121
+ }
1122
+ },
1123
+ "raw": {},
1124
+ "partial": {
1125
+ "type": "object",
1126
+ "required": [
1127
+ "provider",
1128
+ "raw"
1129
+ ],
1130
+ "properties": {
1131
+ "provider": {
1132
+ "type": "object",
1133
+ "required": [
1134
+ "id",
1135
+ "type"
1136
+ ],
1137
+ "properties": {
1138
+ "id": {
1139
+ "type": "string"
1140
+ },
1141
+ "type": {
1142
+ "anyOf": [
1143
+ {
1144
+ "type": "string",
1145
+ "const": "tavily"
1146
+ },
1147
+ {
1148
+ "type": "string",
1149
+ "const": "exa"
1150
+ },
1151
+ {
1152
+ "type": "string",
1153
+ "const": "brave"
1154
+ },
1155
+ {
1156
+ "type": "string",
1157
+ "const": "searxng"
1158
+ },
1159
+ {
1160
+ "type": "string",
1161
+ "const": "firecrawl"
1162
+ },
1163
+ {
1164
+ "type": "string",
1165
+ "const": "jina"
1166
+ },
1167
+ {
1168
+ "type": "string",
1169
+ "const": "http"
1170
+ },
1171
+ {
1172
+ "type": "string",
1173
+ "const": "anysearch"
1174
+ },
1175
+ {
1176
+ "type": "string",
1177
+ "const": "xcrawl"
1178
+ },
1179
+ {
1180
+ "type": "string",
1181
+ "const": "deepseek"
1182
+ }
1183
+ ]
1184
+ }
1185
+ }
1186
+ },
1187
+ "raw": {}
1188
+ }
329
1189
  }
330
1190
  }
1191
+ }
1192
+ }
1193
+ },
1194
+ {
1195
+ "type": "object",
1196
+ "required": [
1197
+ "schemaVersion",
1198
+ "ok",
1199
+ "command",
1200
+ "durationMs",
1201
+ "data"
1202
+ ],
1203
+ "properties": {
1204
+ "schemaVersion": {
1205
+ "type": "number",
1206
+ "const": 2
331
1207
  },
332
- "httpStatus": {
333
- "type": "integer"
1208
+ "ok": {
1209
+ "type": "boolean",
1210
+ "const": true
334
1211
  },
335
- "details": {}
1212
+ "command": {
1213
+ "anyOf": [
1214
+ {
1215
+ "type": "string",
1216
+ "const": "providers"
1217
+ },
1218
+ {
1219
+ "type": "string",
1220
+ "const": "doctor"
1221
+ }
1222
+ ]
1223
+ },
1224
+ "durationMs": {
1225
+ "type": "integer",
1226
+ "minimum": 0
1227
+ },
1228
+ "data": {}
336
1229
  }
337
1230
  },
338
- "partial": {
1231
+ {
339
1232
  "type": "object",
340
1233
  "required": [
341
- "provider",
342
- "data",
343
- "raw"
1234
+ "schemaVersion",
1235
+ "ok",
1236
+ "command",
1237
+ "durationMs",
1238
+ "data"
344
1239
  ],
345
1240
  "properties": {
346
- "provider": {
1241
+ "schemaVersion": {
1242
+ "type": "number",
1243
+ "const": 2
1244
+ },
1245
+ "ok": {
1246
+ "type": "boolean",
1247
+ "const": true
1248
+ },
1249
+ "command": {
1250
+ "type": "string",
1251
+ "const": "config.edit"
1252
+ },
1253
+ "durationMs": {
1254
+ "type": "integer",
1255
+ "minimum": 0
1256
+ },
1257
+ "data": {
347
1258
  "type": "object",
348
1259
  "required": [
349
- "id",
350
- "type"
1260
+ "path",
1261
+ "created",
1262
+ "opened"
351
1263
  ],
352
1264
  "properties": {
353
- "id": {
1265
+ "path": {
354
1266
  "type": "string"
355
1267
  },
356
- "type": {
357
- "anyOf": [
358
- {
359
- "type": "string",
360
- "const": "tavily"
361
- },
362
- {
363
- "type": "string",
364
- "const": "exa"
365
- },
366
- {
367
- "type": "string",
368
- "const": "brave"
369
- },
370
- {
371
- "type": "string",
372
- "const": "searxng"
373
- },
374
- {
375
- "type": "string",
376
- "const": "firecrawl"
377
- },
378
- {
379
- "type": "string",
380
- "const": "jina"
381
- },
382
- {
383
- "type": "string",
384
- "const": "http"
385
- },
386
- {
387
- "type": "string",
388
- "const": "anysearch"
389
- },
390
- {
391
- "type": "string",
392
- "const": "xcrawl"
393
- }
394
- ]
1268
+ "created": {
1269
+ "type": "boolean"
1270
+ },
1271
+ "opened": {
1272
+ "type": "boolean",
1273
+ "const": true
395
1274
  }
396
1275
  }
1276
+ }
1277
+ }
1278
+ },
1279
+ {
1280
+ "type": "object",
1281
+ "required": [
1282
+ "schemaVersion",
1283
+ "ok",
1284
+ "command",
1285
+ "durationMs",
1286
+ "error"
1287
+ ],
1288
+ "properties": {
1289
+ "schemaVersion": {
1290
+ "type": "number",
1291
+ "const": 2
397
1292
  },
398
- "data": {
1293
+ "ok": {
1294
+ "type": "boolean",
1295
+ "const": false
1296
+ },
1297
+ "command": {
1298
+ "anyOf": [
1299
+ {
1300
+ "type": "string",
1301
+ "const": "providers"
1302
+ },
1303
+ {
1304
+ "type": "string",
1305
+ "const": "doctor"
1306
+ },
1307
+ {
1308
+ "type": "string",
1309
+ "const": "config.edit"
1310
+ },
1311
+ {
1312
+ "type": "null"
1313
+ }
1314
+ ]
1315
+ },
1316
+ "durationMs": {
1317
+ "type": "integer",
1318
+ "minimum": 0
1319
+ },
1320
+ "error": {
399
1321
  "type": "object",
400
1322
  "required": [
401
- "document"
1323
+ "code",
1324
+ "message",
1325
+ "retryable"
402
1326
  ],
403
1327
  "properties": {
404
- "document": {
1328
+ "code": {
1329
+ "type": "string"
1330
+ },
1331
+ "message": {
1332
+ "type": "string"
1333
+ },
1334
+ "retryable": {
1335
+ "type": "boolean"
1336
+ },
1337
+ "provider": {
405
1338
  "type": "object",
406
1339
  "required": [
407
- "sourceUrl",
408
- "title",
409
- "content",
410
- "contentType"
1340
+ "id",
1341
+ "type"
411
1342
  ],
412
1343
  "properties": {
413
- "sourceUrl": {
414
- "type": "string",
415
- "format": "uri"
416
- },
417
- "title": {
1344
+ "id": {
418
1345
  "type": "string"
419
1346
  },
420
- "content": {
421
- "type": "string"
422
- },
423
- "contentType": {
424
- "type": "string",
425
- "const": "text/markdown"
1347
+ "type": {
1348
+ "anyOf": [
1349
+ {
1350
+ "type": "string",
1351
+ "const": "tavily"
1352
+ },
1353
+ {
1354
+ "type": "string",
1355
+ "const": "exa"
1356
+ },
1357
+ {
1358
+ "type": "string",
1359
+ "const": "brave"
1360
+ },
1361
+ {
1362
+ "type": "string",
1363
+ "const": "searxng"
1364
+ },
1365
+ {
1366
+ "type": "string",
1367
+ "const": "firecrawl"
1368
+ },
1369
+ {
1370
+ "type": "string",
1371
+ "const": "jina"
1372
+ },
1373
+ {
1374
+ "type": "string",
1375
+ "const": "http"
1376
+ },
1377
+ {
1378
+ "type": "string",
1379
+ "const": "anysearch"
1380
+ },
1381
+ {
1382
+ "type": "string",
1383
+ "const": "xcrawl"
1384
+ },
1385
+ {
1386
+ "type": "string",
1387
+ "const": "deepseek"
1388
+ }
1389
+ ]
426
1390
  }
427
1391
  }
428
- }
1392
+ },
1393
+ "httpStatus": {
1394
+ "type": "integer"
1395
+ },
1396
+ "details": {}
429
1397
  }
430
- },
431
- "raw": {}
1398
+ }
432
1399
  }
433
1400
  }
434
- }
1401
+ ]
435
1402
  }