@@ -105,9 +105,7 @@ export type PermissionBitmap = bigint
105105
106106// ---- Denylist(节点连接拒绝 deny,`denylist.mjs`;非 Social block / 群 ban)----
107107
108- /**
109- *
110- */
108+ /** denylist 拒绝粒度:主体、实体或节点。 */
111109export type DenyScope = 'subject' | 'entity' | 'node'
112110
113111/** 磁盘/API 单条 denylist 条目。 */
@@ -125,13 +123,9 @@ export interface SerializedDenylist {
125123
126124// ---- Personal lists(`personal_block.mjs`:block=联邦公开拉黑,hide=纯本地)----
127125
128- /**
129- *
130- */
126+ /** 个人列表作用域:实体或主体。 */
131127export type PersonalListScope = 'entity' | 'subject'
132- /**
133- *
134- */
128+ /** 个人列表类型:联邦公开拉黑或纯本地隐藏。 */
135129export type PersonalListKind = 'block' | 'hide'
136130
137131/** `GET /api/parts/shells:chat/personal-lists` 与 Social profile 共用条目形状。 */
@@ -141,9 +135,7 @@ export interface PersonalListEntry {
141135 value : string
142136}
143137
144- /**
145- *
146- */
138+ /** `GET …/personal-lists` 响应体。 */
147139export interface PersonalListsResponse {
148140 entries : PersonalListEntry [ ]
149141}
@@ -155,9 +147,7 @@ export interface MailboxSummaryResponse {
155147
156148// ---- 群成员 / 频道 ----
157149
158- /**
159- *
160- */
150+ /** 群成员物化记录。 */
161151export interface Member {
162152 pubKeyHash : string
163153 homeNodeHash ?: string | null
@@ -172,9 +162,7 @@ export interface Member {
172162 pubKeyHex ?: string | null
173163}
174164
175- /**
176- *
177- */
165+ /** 群角色定义(权限、排序与展示)。 */
178166export interface Role {
179167 name : string
180168 color : string
@@ -184,17 +172,13 @@ export interface Role {
184172 isHoisted : boolean
185173}
186174
187- /**
188- *
189- */
175+ /** 频道级权限允许/拒绝覆写。 */
190176export interface ChannelPermissionOverride {
191177 allow : Partial < PermissionFlags >
192178 deny : Partial < PermissionFlags >
193179}
194180
195- /**
196- *
197- */
181+ /** 群频道元数据(文本、列表或流媒体)。 */
198182export interface Channel {
199183 id : string
200184 type : 'text' | 'list' | 'streaming'
@@ -208,27 +192,21 @@ export interface Channel {
208192 manualItems ?: ListItem [ ]
209193}
210194
211- /**
212- *
213- */
195+ /** 列表频道中的手动条目。 */
214196export interface ListItem {
215197 title : string
216198 desc ?: string
217199 targetChannelId ?: string
218200 url ?: string
219201}
220202
221- /**
222- *
223- */
203+ /** 群文件区文件夹节点。 */
224204export interface FileFolder {
225205 name : string
226206 parentFolderId : string | null
227207}
228208
229- /**
230- *
231- */
209+ /** 群展示元数据(名称、头像与分叉信息)。 */
232210export interface GroupMeta {
233211 name : string
234212 description : string
@@ -284,9 +262,7 @@ export interface GroupSettings {
284262
285263// ---- 信誉账本 / 邀请边 / 文件主密钥轮换 ----
286264
287- /**
288- *
289- */
265+ /** 信誉账本条目(slash 或 reset)。 */
290266export interface ReputationLedgerEntry {
291267 targetPubKeyHash : string
292268 sender : string
@@ -296,9 +272,7 @@ export interface ReputationLedgerEntry {
296272 payloadRef ?: string
297273}
298274
299- /**
300- *
301- */
275+ /** 邀请图边(入群关系与可选信誉边)。 */
302276export interface InviteEdge {
303277 from : string
304278 to : string
@@ -308,19 +282,15 @@ export interface InviteEdge {
308282 fileKeyWraps ?: boolean
309283}
310284
311- /**
312- *
313- */
285+ /** 文件主密钥轮换事件摘要。 */
314286export interface FileMasterKeyRotationEntry {
315287 eventId : string
316288 generation : number
317289 nonce : string
318290 type : 'kick' | 'rotate'
319291}
320292
321- /**
322- *
323- */
293+ /** 群共享文件元数据与分块清单。 */
324294export interface FileInfo {
325295 name : string
326296 size : number
@@ -332,9 +302,7 @@ export interface FileInfo {
332302 key_generation ?: number
333303}
334304
335- /**
336- *
337- */
305+ /** 加密文件单个分块的存储定位与哈希。 */
338306export interface ChunkInfo {
339307 chunkIndex : number
340308 chunkHash : string
@@ -415,14 +383,10 @@ export interface SerializedGroupState extends GroupStateCore {
415383 bannedNodes : string [ ]
416384}
417385
418- /**
419- *
420- */
386+ /** checkpoint `members_record` 字段形态(序列化群状态)。 */
421387export type CheckpointMembersRecord = SerializedGroupState
422388
423- /**
424- *
425- */
389+ /** DAG checkpoint 快照(epoch、overlay 与文件树等)。 */
426390export interface Checkpoint {
427391 local_node_id : string | null
428392 members_record : CheckpointMembersRecord
@@ -441,18 +405,14 @@ export interface Checkpoint {
441405 checkpoint_signature ?: string
442406}
443407
444- /**
445- *
446- */
408+ /** 入群 PoW 挑战(难度与时间戳)。 */
447409export interface PowChallenge {
448410 challenge : string
449411 difficulty : number
450412 timestamp : number
451413}
452414
453- /**
454- *
455- */
415+ /** PoW 解答(nonce 与哈希)。 */
456416export interface PowSolution {
457417 nonce : number
458418 hash : string
0 commit comments