feat(onebot): expose system face catalog queries
Add read-only actions for catalog retrieval, per-face lookup, search, and super-face classification. Publish matching SDK methods and generated MCP schemas, including valid face ID zero.
This commit is contained in:
11 files changed
+1257
-3
No files matched your search
@@ -409,6 +409,28 @@ export abstract class SnowLumaApiClient {
|
||||
return this.call('set_msg_emoji_like', { message_id: messageId, emoji_id: emojiId, set }, options);
|
||||
}
|
||||
|
||||
fetchSysFaces(refresh = false, options?: RequestOptions) {
|
||||
return this.call('fetch_sys_faces', { refresh }, options);
|
||||
}
|
||||
|
||||
fetchFaceEntity(faceId: number, options: RequestOptions & { refresh?: boolean } = {}) {
|
||||
return this.call('fetch_face_entity', {
|
||||
face_id: faceId,
|
||||
refresh: options.refresh ?? false,
|
||||
}, options);
|
||||
}
|
||||
|
||||
searchSysFaces(query: string, options?: RequestOptions) {
|
||||
return this.call('search_sys_faces', { query }, options);
|
||||
}
|
||||
|
||||
fetchSuperFaceId(faceId: number, options: RequestOptions & { refresh?: boolean } = {}) {
|
||||
return this.call('fetch_super_face_id', {
|
||||
face_id: faceId,
|
||||
refresh: options.refresh ?? false,
|
||||
}, options);
|
||||
}
|
||||
|
||||
markAllAsRead(options?: RequestOptions) {
|
||||
return this.call('_mark_all_as_read', {}, options);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user