-
Notifications
You must be signed in to change notification settings - Fork 11
/
api.yaml
4500 lines (4472 loc) · 120 KB
/
api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
schemas:
Avatar:
properties:
large:
type: string
medium:
example: sai
type: string
small:
type: string
required:
- small
- medium
- large
title: Avatar
type: object
BaseEpisodeComment:
properties:
content:
type: string
createdAt:
type: integer
creatorID:
type: integer
epID:
type: integer
id:
type: integer
relatedID:
type: integer
state:
type: integer
user:
$ref: '#/components/schemas/User'
required:
- id
- epID
- creatorID
- relatedID
- createdAt
- content
- state
- user
type: object
BasicReply:
properties:
createdAt:
type: integer
creator:
$ref: '#/components/schemas/User'
id:
type: integer
state:
type: integer
text:
type: string
required:
- id
- creator
- createdAt
- text
- state
type: object
Character:
properties:
collects:
type: integer
comment:
type: integer
id:
type: integer
images:
$ref: '#/components/schemas/PersonImages'
infobox:
$ref: '#/components/schemas/Infobox'
lock:
type: boolean
name:
type: string
nsfw:
type: boolean
redirect:
type: integer
role:
type: integer
summary:
type: string
required:
- id
- name
- role
- infobox
- summary
- comment
- collects
- lock
- redirect
- nsfw
title: Character
type: object
CurrentUser:
allOf:
- properties:
avatar:
properties:
large:
type: string
medium:
examples:
- sai
type: string
small:
type: string
required:
- small
- medium
- large
title: Avatar
type: object
id:
examples:
- 1
type: integer
nickname:
examples:
- Sai🖖
type: string
sign:
type: string
user_group:
type: integer
username:
examples:
- sai
type: string
required:
- id
- username
- nickname
- avatar
- sign
- user_group
title: User
type: object
- properties:
permission:
properties:
subjectWikiEdit:
type: boolean
required:
- subjectWikiEdit
type: object
required:
- permission
type: object
type: object
EpisodeComments:
allOf:
- properties:
content:
type: string
createdAt:
type: integer
creatorID:
type: integer
epID:
type: integer
id:
type: integer
relatedID:
type: integer
state:
type: integer
user:
$ref: '#/components/schemas/User'
required:
- id
- epID
- creatorID
- relatedID
- createdAt
- content
- state
- user
type: object
- properties:
replies:
items:
$ref: '#/components/schemas/BaseEpisodeComment'
type: array
required:
- replies
type: object
type: object
EpisodeWikiInfo:
properties:
date:
description: YYYY-MM-DD
example: '2022-02-02'
pattern: ^\d{4}-\d{2}-\d{2}$
type: string
duration:
example: '24:53'
type: string
ep:
type: number
id:
type: integer
name:
type: string
nameCN:
type: string
subjectID:
type: integer
summary:
type: string
type:
anyOf:
- enum:
- 0
type: number
- enum:
- 1
type: number
- enum:
- 2
type: number
- enum:
- 3
type: number
- enum:
- 4
type: number
- enum:
- 5
type: number
- enum:
- 6
type: number
required:
- id
- subjectID
- name
- nameCN
- type
- ep
- duration
- summary
type: object
ErrorResponse:
description: default error response type
properties:
code:
type: string
error:
type: string
message:
type: string
statusCode:
type: integer
required:
- code
- error
- message
- statusCode
type: object
Group:
properties:
createdAt:
type: integer
description:
type: string
icon:
type: string
id:
type: integer
name:
type: string
nsfw:
type: boolean
title:
type: string
totalMembers:
type: integer
required:
- id
- name
- nsfw
- title
- icon
- description
- totalMembers
- createdAt
type: object
GroupMember:
properties:
avatar:
properties:
large:
type: string
medium:
example: sai
type: string
small:
type: string
required:
- small
- medium
- large
title: Avatar
type: object
id:
type: integer
joinedAt:
type: integer
nickname:
type: string
username:
type: string
required:
- avatar
- id
- nickname
- username
- joinedAt
type: object
GroupProfile:
properties:
group:
$ref: '#/components/schemas/Group'
inGroup:
description: 是否已经加入小组
type: boolean
recentAddedMembers:
items:
$ref: '#/components/schemas/GroupMember'
type: array
topics:
items:
$ref: '#/components/schemas/Topic'
type: array
totalTopics:
type: integer
required:
- recentAddedMembers
- topics
- inGroup
- group
- totalTopics
type: object
GroupReply:
properties:
createdAt:
type: integer
creator:
$ref: '#/components/schemas/User'
id:
type: integer
state:
type: integer
text:
type: string
topicID:
type: integer
topicTitle:
type: string
required:
- id
- creator
- createdAt
- text
- state
- topicID
- topicTitle
type: object
HistorySummary:
properties:
commitMessage:
type: string
createdAt:
description: unix timestamp seconds
type: integer
creator:
properties:
username:
type: string
required:
- username
type: object
type:
description: 修改类型。`1` 正常修改, `11` 合并,`103` 锁定/解锁 `104` 未知
type: integer
required:
- creator
- type
- commitMessage
- createdAt
type: object
Index:
properties:
collects:
type: integer
createdAt:
type: integer
creator:
$ref: '#/components/schemas/User'
desc:
type: string
id:
type: integer
replies:
type: integer
title:
type: string
total:
type: integer
type:
type: integer
updatedAt:
type: integer
required:
- id
- type
- title
- desc
- replies
- total
- collects
- createdAt
- updatedAt
- creator
title: Index
type: object
Infobox:
additionalProperties:
items:
properties:
k:
type: string
v:
type: string
required:
- v
title: InfoboxValue
type: object
type: array
title: Infobox
type: object
InfoboxValue:
properties:
k:
type: string
v:
type: string
required:
- v
title: InfoboxValue
type: object
LoginRequestBody:
example:
cf-turnstile-response: 10000000-aaaa-bbbb-cccc-000000000001
email: [email protected]
password: lovemeplease
properties:
cf-turnstile-response:
minLength: 1
type: string
email:
minLength: 1
type: string
password:
minLength: 1
type: string
required:
- email
- password
- cf-turnstile-response
type: object
Notice:
properties:
createdAt:
description: unix timestamp in seconds
type: integer
id:
type: integer
postID:
type: integer
sender:
properties:
avatar:
properties:
large:
type: string
medium:
example: sai
type: string
small:
type: string
required:
- small
- medium
- large
title: Avatar
type: object
id:
example: 1
type: integer
nickname:
example: Sai🖖
type: string
sign:
type: string
user_group:
type: integer
username:
example: sai
type: string
required:
- id
- username
- nickname
- avatar
- sign
- user_group
title: User
type: object
title:
type: string
topicID:
type: integer
type:
description: 查看 `./lib/notify.ts` _settings
type: integer
unread:
type: boolean
required:
- id
- title
- type
- sender
- topicID
- postID
- createdAt
- unread
type: object
Permission:
properties:
subjectWikiEdit:
type: boolean
required:
- subjectWikiEdit
type: object
Person:
properties:
career:
description: 职业
example: producer
items:
type: string
type: array
collects:
type: integer
comment:
type: integer
id:
type: integer
images:
$ref: '#/components/schemas/PersonImages'
infobox:
$ref: '#/components/schemas/Infobox'
lock:
type: boolean
name:
type: string
nsfw:
type: boolean
redirect:
type: integer
summary:
type: string
type:
type: integer
required:
- id
- name
- type
- infobox
- career
- summary
- comment
- collects
- lock
- redirect
- nsfw
title: Person
type: object
PersonImages:
properties:
grid:
type: string
large:
type: string
medium:
type: string
small:
type: string
required:
- large
- medium
- small
- grid
title: PersonImages
type: object
Reaction:
properties:
selected:
type: boolean
total:
type: integer
value:
type: integer
required:
- selected
- total
- value
type: object
RecentWikiChange:
properties:
persons:
items:
properties:
createdAt:
type: integer
id:
type: integer
required:
- id
- createdAt
type: object
type: array
subject:
items:
properties:
createdAt:
type: integer
id:
type: integer
required:
- id
- createdAt
type: object
type: array
required:
- subject
- persons
type: object
Reply:
properties:
createdAt:
type: integer
creator:
$ref: '#/components/schemas/User'
id:
type: integer
isFriend:
type: boolean
reactions:
items:
$ref: '#/components/schemas/Reaction'
type: array
replies:
items:
$ref: '#/components/schemas/SubReply'
type: array
state:
type: integer
text:
type: string
required:
- id
- isFriend
- replies
- creator
- createdAt
- text
- state
- reactions
type: object
SlimCharacter:
properties:
id:
type: integer
images:
$ref: '#/components/schemas/PersonImages'
lock:
type: boolean
name:
type: string
nsfw:
type: boolean
role:
type: integer
required:
- id
- name
- role
- lock
- nsfw
title: SlimCharacter
type: object
SlimIndex:
properties:
createdAt:
type: integer
id:
type: integer
title:
type: string
total:
type: integer
type:
type: integer
required:
- id
- type
- title
- total
- createdAt
title: SlimIndex
type: object
SlimPerson:
properties:
id:
type: integer
images:
$ref: '#/components/schemas/PersonImages'
lock:
type: boolean
name:
type: string
nsfw:
type: boolean
type:
type: integer
required:
- id
- name
- type
- lock
- nsfw
title: SlimPerson
type: object
SlimSubject:
example:
id: 8
images:
common: https://lain.bgm.tv/pic/cover/c/c9/f0/8_wK0z3.jpg
grid: https://lain.bgm.tv/pic/cover/g/c9/f0/8_wK0z3.jpg
large: https://lain.bgm.tv/pic/cover/l/c9/f0/8_wK0z3.jpg
medium: https://lain.bgm.tv/pic/cover/m/c9/f0/8_wK0z3.jpg
small: https://lain.bgm.tv/pic/cover/s/c9/f0/8_wK0z3.jpg
locked: false
name: コードギアス 反逆のルルーシュR2
nameCN: Code Geass 反叛的鲁路修R2
nsfw: false
type: 2
properties:
id:
type: integer
images:
$ref: '#/components/schemas/SubjectImages'
locked:
type: boolean
name:
type: string
nameCN:
type: string
nsfw:
type: boolean
type:
anyOf:
- enum:
- 1
type: number
- enum:
- 2
type: number
- enum:
- 3
type: number
- enum:
- 4
type: number
- enum:
- 6
type: number
required:
- id
- name
- nameCN
- type
- locked
- nsfw
title: SlimSubject
type: object
SubReply:
properties:
createdAt:
type: integer
creator:
$ref: '#/components/schemas/User'
id:
type: integer
isFriend:
type: boolean
reactions:
items:
$ref: '#/components/schemas/Reaction'
type: array
state:
type: integer
text:
type: string
required:
- id
- creator
- createdAt
- isFriend
- text
- state
- reactions
type: object
Subject:
properties:
date:
type: string
id:
type: integer
image:
type: string
infobox:
type: string
locked:
type: boolean
name:
type: string
nsfw:
type: boolean
platform:
type: integer
redirect:
type: integer
summary:
type: string
typeID:
type: integer
required:
- id
- name
- typeID
- infobox
- platform
- summary
- nsfw
- date
- redirect
- locked
- image
type: object
SubjectAirtime:
properties:
date:
type: string
month:
type: integer
weekday:
type: integer
year:
type: integer
required:
- date
- month
- weekday
- year
title: SubjectAirtime
type: object
SubjectCollection:
additionalProperties:
type: integer
title: SubjectCollection
type: object
SubjectEdit:
example:
infobox: |-
{{Infobox animanga/TVAnime
|中文名= 沙盒
|别名={
}
|话数= 7
|放送开始= 0000-10-06
|放送星期=
|官方网站=
|播放电视台=
|其他电视台=
|播放结束=
|其他=
|Copyright=
|平台={
[龟壳]
[Xbox Series S]
[Xbox Series X]
[Xbox Series X/S]
[PC]
[Xbox Series X|S]
}
}}
name: 沙盒
nsfw: false
platform: 0
summary: |-
本条目是一个沙盒,可以用于尝试bgm功能。
普通维基人可以随意编辑条目信息以及相关关联查看编辑效果,但是请不要完全删除沙盒说明并且不要关联非沙盒条目/人物/角色。
https://bgm.tv/group/topic/366812#post_1923517
properties:
date:
example: '0000-00-00'
pattern: ^\d{4}-\d{2}-\d{2}$
type: string
infobox:
minLength: 1
type: string
metaTags:
items:
type: string
type: array
name:
minLength: 1
type: string
nsfw:
type: boolean
platform:
type: integer
summary:
type: string
required:
- name
- infobox
- platform
- nsfw
- metaTags
- summary
type: object
SubjectImages:
properties:
common:
type: string
grid:
type: string
large:
type: string
medium:
type: string
small:
type: string
required:
- large
- common
- medium
- small
- grid
title: SubjectImages
type: object
SubjectInterestComment:
properties:
list:
items:
properties:
comment:
type: string
rate:
type: integer
updatedAt:
type: integer
user:
$ref: '#/components/schemas/User'
required:
- user
- rate
- comment
- updatedAt
type: object
type: array
total:
type: integer
required:
- total
- list