best-geo-test 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.
@@ -0,0 +1,3 @@
1
+ Best GEO CLI 第三方软件许可声明
2
+
3
+ 本发布包未包含需要随附许可文本的第三方运行时代码。
@@ -11,7 +11,7 @@
11
11
  "type": "object",
12
12
  "properties": {
13
13
  "id": {
14
- "type": "number",
14
+ "type": "integer",
15
15
  "description": "只看某一家公司"
16
16
  },
17
17
  "name": {
@@ -23,11 +23,11 @@
23
23
  "description": "同时按名称和 ID 搜索"
24
24
  },
25
25
  "page": {
26
- "type": "number",
26
+ "type": "integer",
27
27
  "default": 1
28
28
  },
29
29
  "limit": {
30
- "type": "number",
30
+ "type": "integer",
31
31
  "default": 20,
32
32
  "maximum": 100
33
33
  }
@@ -45,7 +45,8 @@
45
45
  "type": "object",
46
46
  "properties": {
47
47
  "id": {
48
- "type": "number"
48
+ "type": "integer",
49
+ "minimum": 1
49
50
  }
50
51
  },
51
52
  "required": [
@@ -65,11 +66,13 @@
65
66
  "properties": {
66
67
  "name": {
67
68
  "type": "string",
68
- "description": "公司名称"
69
+ "description": "公司名称",
70
+ "maxLength": 255
69
71
  },
70
72
  "description": {
71
73
  "type": "string",
72
- "description": "公司描述"
74
+ "description": "公司描述",
75
+ "maxLength": 255
73
76
  },
74
77
  "aliases": {
75
78
  "type": "array",
@@ -96,13 +99,15 @@
96
99
  "type": "object",
97
100
  "properties": {
98
101
  "companyId": {
99
- "type": "number"
102
+ "type": "integer"
100
103
  },
101
104
  "name": {
102
- "type": "string"
105
+ "type": "string",
106
+ "maxLength": 255
103
107
  },
104
108
  "description": {
105
- "type": "string"
109
+ "type": "string",
110
+ "maxLength": 255
106
111
  },
107
112
  "aliases": {
108
113
  "type": "array",
@@ -128,7 +133,7 @@
128
133
  "type": "object",
129
134
  "properties": {
130
135
  "companyId": {
131
- "type": "number"
136
+ "type": "integer"
132
137
  },
133
138
  "name": {
134
139
  "type": "string"
@@ -137,11 +142,11 @@
137
142
  "type": "string"
138
143
  },
139
144
  "page": {
140
- "type": "number",
145
+ "type": "integer",
141
146
  "default": 1
142
147
  },
143
148
  "limit": {
144
- "type": "number",
149
+ "type": "integer",
145
150
  "default": 20,
146
151
  "maximum": 100
147
152
  }
@@ -159,7 +164,8 @@
159
164
  "type": "object",
160
165
  "properties": {
161
166
  "id": {
162
- "type": "number"
167
+ "type": "integer",
168
+ "minimum": 1
163
169
  }
164
170
  },
165
171
  "required": [
@@ -178,10 +184,11 @@
178
184
  "type": "object",
179
185
  "properties": {
180
186
  "companyId": {
181
- "type": "number"
187
+ "type": "integer"
182
188
  },
183
189
  "name": {
184
- "type": "string"
190
+ "type": "string",
191
+ "maxLength": 255
185
192
  },
186
193
  "keyword": {
187
194
  "type": "array",
@@ -217,10 +224,11 @@
217
224
  "type": "object",
218
225
  "properties": {
219
226
  "productId": {
220
- "type": "number"
227
+ "type": "integer"
221
228
  },
222
229
  "name": {
223
- "type": "string"
230
+ "type": "string",
231
+ "maxLength": 255
224
232
  },
225
233
  "keyword": {
226
234
  "type": "array",
@@ -253,21 +261,21 @@
253
261
  "type": "object",
254
262
  "properties": {
255
263
  "companyId": {
256
- "type": "number"
264
+ "type": "integer"
257
265
  },
258
266
  "productId": {
259
- "type": "number"
267
+ "type": "integer"
260
268
  },
261
269
  "topic": {
262
270
  "type": "string",
263
271
  "description": "按问题文本模糊匹配"
264
272
  },
265
273
  "page": {
266
- "type": "number",
274
+ "type": "integer",
267
275
  "default": 1
268
276
  },
269
277
  "limit": {
270
- "type": "number",
278
+ "type": "integer",
271
279
  "default": 20,
272
280
  "maximum": 100
273
281
  }
@@ -285,7 +293,8 @@
285
293
  "type": "object",
286
294
  "properties": {
287
295
  "id": {
288
- "type": "number"
296
+ "type": "integer",
297
+ "minimum": 1
289
298
  }
290
299
  },
291
300
  "required": [
@@ -304,12 +313,13 @@
304
313
  "type": "object",
305
314
  "properties": {
306
315
  "productId": {
307
- "type": "number"
316
+ "type": "integer"
308
317
  },
309
318
  "questions": {
310
319
  "type": "array",
311
320
  "items": {
312
- "type": "string"
321
+ "type": "string",
322
+ "maxLength": 255
313
323
  },
314
324
  "maxItems": 100,
315
325
  "description": "问题文本数组,不是换行字符串"
@@ -338,11 +348,12 @@
338
348
  "type": "object",
339
349
  "properties": {
340
350
  "questionId": {
341
- "type": "number"
351
+ "type": "integer"
342
352
  },
343
353
  "topic": {
344
354
  "type": "string",
345
- "description": "问题文本"
355
+ "description": "问题文本",
356
+ "maxLength": 255
346
357
  },
347
358
  "tags": {
348
359
  "type": "array",
@@ -357,6 +368,413 @@
357
368
  ],
358
369
  "additionalProperties": false
359
370
  }
371
+ },
372
+ {
373
+ "name": "articles.list",
374
+ "mode": "read",
375
+ "guide": "article",
376
+ "requiresPlan": false,
377
+ "description": "列出文章。不返回正文——要正文用 articles.get 并显式传 withContent。",
378
+ "inputSchema": {
379
+ "type": "object",
380
+ "properties": {
381
+ "companyId": {
382
+ "type": "integer",
383
+ "description": "只看某家公司;不传就是全部授权公司"
384
+ },
385
+ "productId": {
386
+ "type": "integer",
387
+ "description": "只看某个 GEO 项目"
388
+ },
389
+ "title": {
390
+ "type": "string",
391
+ "description": "按标题模糊匹配"
392
+ },
393
+ "status": {
394
+ "type": "integer",
395
+ "description": "按文章状态过滤。取值:0=待审核,1=已通过,2=已拒绝。不传就是全部状态。"
396
+ },
397
+ "published": {
398
+ "type": "boolean",
399
+ "description": "只看发布过 / 没发布过的"
400
+ },
401
+ "page": {
402
+ "type": "integer",
403
+ "default": 1
404
+ },
405
+ "limit": {
406
+ "type": "integer",
407
+ "default": 20,
408
+ "maximum": 100
409
+ }
410
+ },
411
+ "additionalProperties": false
412
+ }
413
+ },
414
+ {
415
+ "name": "articles.get",
416
+ "mode": "read",
417
+ "guide": "article",
418
+ "requiresPlan": false,
419
+ "description": "按 ID 读一篇文章。默认不含正文;正文动辄几千字,确实要读全文时才传 withContent。",
420
+ "inputSchema": {
421
+ "type": "object",
422
+ "properties": {
423
+ "id": {
424
+ "type": "integer",
425
+ "minimum": 1
426
+ },
427
+ "withContent": {
428
+ "type": "boolean",
429
+ "default": false,
430
+ "description": "true 才返回正文"
431
+ }
432
+ },
433
+ "required": [
434
+ "id"
435
+ ],
436
+ "additionalProperties": false
437
+ }
438
+ },
439
+ {
440
+ "name": "knowledge.list",
441
+ "mode": "read",
442
+ "guide": "knowledge",
443
+ "requiresPlan": false,
444
+ "description": "列出知识库。productId 为 null 的是公司级公共知识库,该公司下所有 GEO 项目都能用。",
445
+ "inputSchema": {
446
+ "type": "object",
447
+ "properties": {
448
+ "companyId": {
449
+ "type": "integer",
450
+ "description": "只看某家公司;不传就是全部授权公司"
451
+ },
452
+ "productId": {
453
+ "type": "integer",
454
+ "description": "只看某个 GEO 项目。传 0 只看公司级公共知识库。注意:传了具体项目 ID 时**看不到**公司级公共库,要再用 productId=0 查一次。"
455
+ },
456
+ "name": {
457
+ "type": "string",
458
+ "description": "按名称模糊匹配"
459
+ },
460
+ "status": {
461
+ "type": "integer",
462
+ "description": "按知识库状态过滤。取值:0=待处理,1=可用,2=解析中,3=失败。注意这套编码和文档的解析状态不一样。"
463
+ },
464
+ "page": {
465
+ "type": "integer",
466
+ "default": 1
467
+ },
468
+ "limit": {
469
+ "type": "integer",
470
+ "default": 20,
471
+ "maximum": 100
472
+ }
473
+ },
474
+ "additionalProperties": false
475
+ }
476
+ },
477
+ {
478
+ "name": "knowledge.get",
479
+ "mode": "read",
480
+ "guide": "knowledge",
481
+ "requiresPlan": false,
482
+ "description": "按 ID 读一个知识库,含每个文档的解析状态。新建之后就是靠它确认解析完没完。文档状态取值:0=待处理,1=解析中,2=可用,3=失败——和知识库本体的状态不是同一套编码。",
483
+ "inputSchema": {
484
+ "type": "object",
485
+ "properties": {
486
+ "id": {
487
+ "type": "integer",
488
+ "minimum": 1
489
+ }
490
+ },
491
+ "required": [
492
+ "id"
493
+ ],
494
+ "additionalProperties": false
495
+ }
496
+ },
497
+ {
498
+ "name": "knowledge.create",
499
+ "mode": "write",
500
+ "guide": "knowledge",
501
+ "requiresPlan": true,
502
+ "description": "新建知识库。按文档计费,且创建后要等后台解析完才能用于检索——两件事都在 plan 摘要的 notice 里,念给用户听。",
503
+ "inputSchema": {
504
+ "type": "object",
505
+ "properties": {
506
+ "companyId": {
507
+ "type": "integer"
508
+ },
509
+ "name": {
510
+ "type": "string",
511
+ "description": "知识库名称",
512
+ "maxLength": 255
513
+ },
514
+ "productId": {
515
+ "type": "integer",
516
+ "description": "归到某个 GEO 项目;不传就是公司级公共知识库"
517
+ },
518
+ "tags": {
519
+ "type": "array",
520
+ "items": {
521
+ "type": "string"
522
+ },
523
+ "description": "整体覆盖,不是追加"
524
+ },
525
+ "files": {
526
+ "type": "array",
527
+ "description": "至少一个文档。每个文档扣一次费。",
528
+ "items": {
529
+ "type": "object",
530
+ "properties": {
531
+ "name": {
532
+ "type": "string",
533
+ "description": "文档名,展示用",
534
+ "maxLength": 255
535
+ },
536
+ "file": {
537
+ "type": "string",
538
+ "description": "可以是链接,也可以直接是整段正文文本"
539
+ }
540
+ },
541
+ "required": [
542
+ "name",
543
+ "file"
544
+ ],
545
+ "additionalProperties": false
546
+ }
547
+ }
548
+ },
549
+ "required": [
550
+ "companyId",
551
+ "name",
552
+ "files"
553
+ ],
554
+ "additionalProperties": false
555
+ }
556
+ },
557
+ {
558
+ "name": "knowledge.update",
559
+ "mode": "write",
560
+ "guide": "knowledge",
561
+ "requiresPlan": true,
562
+ "description": "改知识库的名称和标签。改不了所属项目,也加不了文档——那两件事要去网页做。",
563
+ "inputSchema": {
564
+ "type": "object",
565
+ "properties": {
566
+ "knowledgeBaseId": {
567
+ "type": "integer"
568
+ },
569
+ "name": {
570
+ "type": "string",
571
+ "maxLength": 255
572
+ },
573
+ "tags": {
574
+ "type": "array",
575
+ "items": {
576
+ "type": "string"
577
+ },
578
+ "description": "整体覆盖,不是追加"
579
+ }
580
+ },
581
+ "required": [
582
+ "knowledgeBaseId"
583
+ ],
584
+ "additionalProperties": false
585
+ }
586
+ },
587
+ {
588
+ "name": "images.list",
589
+ "mode": "read",
590
+ "guide": "material",
591
+ "description": "查图片素材。列表里有图片地址和语义描述,够回答「有哪些图能用」。",
592
+ "inputSchema": {
593
+ "type": "object",
594
+ "properties": {
595
+ "companyId": {
596
+ "type": "integer",
597
+ "description": "只看某家公司;不传就是全部授权公司"
598
+ },
599
+ "productId": {
600
+ "type": "integer",
601
+ "description": "只看某个 GEO 项目。传 0 只看公司级公共图片。注意:传了具体项目 ID 时**看不到**公司级公共图片,要再用 productId=0 查一次。"
602
+ },
603
+ "name": {
604
+ "type": "string",
605
+ "description": "按名称前缀匹配"
606
+ },
607
+ "status": {
608
+ "type": "integer",
609
+ "description": "按入库状态过滤。取值:0=待处理,1=可用,2=已停用,3=处理失败。不传就是全部状态。"
610
+ },
611
+ "tags": {
612
+ "type": "array",
613
+ "items": {
614
+ "type": "string"
615
+ },
616
+ "description": "按标签筛选,多个标签是「同时具备」"
617
+ },
618
+ "page": {
619
+ "type": "integer",
620
+ "default": 1
621
+ },
622
+ "limit": {
623
+ "type": "integer",
624
+ "default": 20,
625
+ "maximum": 100
626
+ }
627
+ },
628
+ "additionalProperties": false
629
+ },
630
+ "requiresPlan": false
631
+ },
632
+ {
633
+ "name": "images.get",
634
+ "mode": "read",
635
+ "guide": "material",
636
+ "description": "看一张图片素材的详情。",
637
+ "inputSchema": {
638
+ "type": "object",
639
+ "properties": {
640
+ "id": {
641
+ "type": "integer",
642
+ "minimum": 1
643
+ }
644
+ },
645
+ "required": [
646
+ "id"
647
+ ],
648
+ "additionalProperties": false
649
+ },
650
+ "requiresPlan": false
651
+ },
652
+ {
653
+ "name": "videos.list",
654
+ "mode": "read",
655
+ "guide": "material",
656
+ "description": "查视频素材。列表里有视频地址、封面和时长。",
657
+ "inputSchema": {
658
+ "type": "object",
659
+ "properties": {
660
+ "companyId": {
661
+ "type": "integer",
662
+ "description": "只看某家公司;不传就是全部授权公司"
663
+ },
664
+ "productId": {
665
+ "type": "integer",
666
+ "description": "只看某个 GEO 项目。**视频没有公司级/项目级之分,传 0 等同不传(返回全部视频)**,不要照搬 images.list 的 productId=0 用法。"
667
+ },
668
+ "title": {
669
+ "type": "string",
670
+ "description": "按标题模糊匹配"
671
+ },
672
+ "source": {
673
+ "type": "integer",
674
+ "description": "按来源过滤。取值:1=从 OEM 导入,2=用户上传,3=数字人合成,4=智能剪辑成片。不传就是全部来源。"
675
+ },
676
+ "tags": {
677
+ "type": "array",
678
+ "items": {
679
+ "type": "string"
680
+ },
681
+ "description": "按标签筛选,多个标签是「同时具备」"
682
+ },
683
+ "page": {
684
+ "type": "integer",
685
+ "default": 1
686
+ },
687
+ "limit": {
688
+ "type": "integer",
689
+ "default": 20,
690
+ "maximum": 100
691
+ }
692
+ },
693
+ "additionalProperties": false
694
+ },
695
+ "requiresPlan": false
696
+ },
697
+ {
698
+ "name": "videos.get",
699
+ "mode": "read",
700
+ "guide": "material",
701
+ "description": "看一条视频素材的详情。",
702
+ "inputSchema": {
703
+ "type": "object",
704
+ "properties": {
705
+ "id": {
706
+ "type": "integer",
707
+ "minimum": 1
708
+ }
709
+ },
710
+ "required": [
711
+ "id"
712
+ ],
713
+ "additionalProperties": false
714
+ },
715
+ "requiresPlan": false
716
+ },
717
+ {
718
+ "name": "images.update",
719
+ "mode": "write",
720
+ "guide": "material",
721
+ "requiresPlan": true,
722
+ "description": "改图片素材的名称或标签。换图片本身、改所属项目、删除都要去网页。",
723
+ "inputSchema": {
724
+ "type": "object",
725
+ "properties": {
726
+ "imageId": {
727
+ "type": "integer"
728
+ },
729
+ "name": {
730
+ "type": "string",
731
+ "description": "图片名称",
732
+ "maxLength": 255
733
+ },
734
+ "tags": {
735
+ "type": "array",
736
+ "items": {
737
+ "type": "string"
738
+ },
739
+ "description": "整体覆盖,不是追加"
740
+ }
741
+ },
742
+ "required": [
743
+ "imageId"
744
+ ],
745
+ "additionalProperties": false
746
+ }
747
+ },
748
+ {
749
+ "name": "videos.update",
750
+ "mode": "write",
751
+ "guide": "material",
752
+ "requiresPlan": true,
753
+ "description": "改视频素材的标题或标签。换视频文件、改封面、改所属项目、删除都要去网页。",
754
+ "inputSchema": {
755
+ "type": "object",
756
+ "properties": {
757
+ "videoId": {
758
+ "type": "integer"
759
+ },
760
+ "title": {
761
+ "type": "string",
762
+ "description": "视频标题",
763
+ "maxLength": 255
764
+ },
765
+ "tags": {
766
+ "type": "array",
767
+ "items": {
768
+ "type": "string"
769
+ },
770
+ "description": "整体覆盖,不是追加"
771
+ }
772
+ },
773
+ "required": [
774
+ "videoId"
775
+ ],
776
+ "additionalProperties": false
777
+ }
360
778
  }
361
779
  ]
362
780
  }