@@ -83,6 +83,7 @@ export type TopicDetail = {
83
83
title : string ;
84
84
} ;
85
85
export type TopicCreation = {
86
+ /** bbcode */
86
87
text : string ;
87
88
title : string ;
88
89
} ;
@@ -105,6 +106,7 @@ export type GroupMember = {
105
106
username : string ;
106
107
} ;
107
108
export type Topic = {
109
+ /** 发帖时间,unix time stamp in seconds */
108
110
createdAt : number ;
109
111
creator : {
110
112
avatar : {
@@ -118,14 +120,18 @@ export type Topic = {
118
120
user_group : number ;
119
121
username : string ;
120
122
} ;
123
+ /** topic id */
121
124
id : number ;
125
+ /** 小组/条目ID */
122
126
parentID : number ;
123
127
repliesCount : number ;
124
128
title : string ;
129
+ /** 最后回复时间,unix time stamp in seconds */
125
130
updatedAt : number ;
126
131
} ;
127
132
export type GroupProfile = {
128
133
group : Group ;
134
+ /** 是否已经加入小组 */
129
135
inGroup : boolean ;
130
136
recentAddedMembers : GroupMember [ ] ;
131
137
topics : Topic [ ] ;
@@ -153,6 +159,7 @@ export type CurrentUser = {
153
159
} ;
154
160
} ;
155
161
export type Notice = {
162
+ /** unix timestamp in seconds */
156
163
createdAt : number ;
157
164
id : number ;
158
165
postID : number ;
@@ -170,10 +177,12 @@ export type Notice = {
170
177
} ;
171
178
title : string ;
172
179
topicID : number ;
180
+ /** 查看 `./lib/notify.ts` _settings */
173
181
type : number ;
174
182
unread : boolean ;
175
183
} ;
176
184
export type EpisodeWikiInfo = {
185
+ /** YYYY-MM-DD */
177
186
date ?: string ;
178
187
duration : string ;
179
188
ep : number ;
@@ -209,10 +218,12 @@ export type SubjectEdit = {
209
218
} ;
210
219
export type HistorySummary = {
211
220
commitMessage : string ;
221
+ /** unix timestamp seconds */
212
222
createdAt : number ;
213
223
creator : {
214
224
username : string ;
215
225
} ;
226
+ /** 修改类型。`1` 正常修改, `11` 合并,`103` 锁定/解锁 `104` 未知 */
216
227
type : number ;
217
228
} ;
218
229
/**
@@ -371,6 +382,7 @@ export function createGroupReply(
371
382
topicId : number ,
372
383
body : {
373
384
content : string ;
385
+ /** 被回复的 topic ID, `0` 代表回复楼主 */
374
386
replyTo ?: number ;
375
387
} ,
376
388
opts ?: Oazapfts . RequestOpts ,
@@ -532,6 +544,7 @@ export function createNewGroupTopic(
532
544
| {
533
545
status : 200 ;
534
546
data : {
547
+ /** new topic id */
535
548
id : number ;
536
549
} ;
537
550
}
@@ -736,6 +749,7 @@ export function patchEpisodeWikiInfo(
736
749
body : {
737
750
commitMessage : string ;
738
751
episode : {
752
+ /** YYYY-MM-DD */
739
753
date ?: string ;
740
754
duration ?: string ;
741
755
ep ?: number ;
@@ -913,6 +927,7 @@ export function listSubjectCovers(subjectId: number, opts?: Oazapfts.RequestOpts
913
927
export function uploadSubjectCover (
914
928
subjectId : number ,
915
929
body : {
930
+ /** base64 encoded raw bytes, 4mb size limit on **decoded** size */
916
931
content : string ;
917
932
} ,
918
933
opts ?: Oazapfts . RequestOpts ,
0 commit comments