Decode the verified album cover response field and expose normalized cover details and last-upload timestamps through both album list actions. Preserve the legacy numeric timestamp shape, retain string timestamps for the native response, return null when no cover exists, and avoid additional network requests. Document the new output contracts in the OneBot and MCP catalogs. Add independent wire fixtures and action-level regression tests for the protocol mapping and public response shapes. Refs #257
10930 lines
245 KiB
TypeScript
10930 lines
245 KiB
TypeScript
// GENERATED by scripts/gen-catalog.test.ts — do not edit. Run `pnpm gen`.
|
||
/* eslint-disable */
|
||
import type { CatalogAction, CatalogCategory } from '../types.js';
|
||
|
||
export const ACTIONS: CatalogAction[] = [
|
||
{
|
||
"name": "_del_group_notice",
|
||
"aliases": [],
|
||
"summary": "删除群公告(fid 或 notice_id 二选一)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "fid",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "notice_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"fid": {
|
||
"type": "string"
|
||
},
|
||
"notice_id": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "_get_group_notice",
|
||
"aliases": [],
|
||
"summary": "获取群公告",
|
||
"returns": "普通公告与新成员公告的合并数组;send_to_new_members 标识后者",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "_get_model_show",
|
||
"aliases": [],
|
||
"summary": "获取机型展示(兼容 mock)",
|
||
"returns": "数组,每项含 variants(回显请求的机型名与 need_pay 标记)。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"variants": {
|
||
"type": "object",
|
||
"properties": {
|
||
"model_show": {
|
||
"type": "string",
|
||
"description": "机型展示名(回显请求的 model,缺省 snowluma)"
|
||
},
|
||
"need_pay": {
|
||
"type": "boolean",
|
||
"description": "是否需付费(恒 false)"
|
||
}
|
||
},
|
||
"required": [
|
||
"model_show",
|
||
"need_pay"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"variants"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "model",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"model": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "_mark_all_as_read",
|
||
"aliases": [],
|
||
"summary": "标记全部已读",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "_send_group_notice",
|
||
"aliases": [],
|
||
"summary": "发送群公告(支持置顶、弹窗、新成员、群昵称引导与确认)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "content",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "公告正文"
|
||
},
|
||
{
|
||
"name": "image",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "image",
|
||
"desc": "可选公告图片(本地路径、URL 或 base64)"
|
||
},
|
||
{
|
||
"name": "pinned",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1
|
||
},
|
||
"default": 0,
|
||
"desc": "是否置顶:1=置顶,0=不置顶"
|
||
},
|
||
{
|
||
"name": "type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
},
|
||
"desc": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members"
|
||
},
|
||
{
|
||
"name": "send_to_new_members",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"desc": "是否在成员新加入群时发送(与 type=20 等价)"
|
||
},
|
||
{
|
||
"name": "is_show_edit_card",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1
|
||
},
|
||
"default": 1,
|
||
"desc": "是否引导群成员修改群昵称:1=是,0=否"
|
||
},
|
||
{
|
||
"name": "tip_window_type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1
|
||
},
|
||
"default": 1,
|
||
"desc": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)"
|
||
},
|
||
{
|
||
"name": "confirm_required",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1
|
||
},
|
||
"default": 1,
|
||
"desc": "是否需要群成员确认收到:1=是,0=否"
|
||
}
|
||
],
|
||
"invariants": [
|
||
"type must be 1 (regular) or 20 (new members)",
|
||
"send_to_new_members conflicts with type"
|
||
],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"content": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "公告正文"
|
||
},
|
||
"image": {
|
||
"type": "string",
|
||
"description": "可选公告图片(本地路径、URL 或 base64)",
|
||
"default": "",
|
||
"x-role": "image"
|
||
},
|
||
"pinned": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1,
|
||
"description": "是否置顶:1=置顶,0=不置顶",
|
||
"default": 0
|
||
},
|
||
"type": {
|
||
"type": "integer",
|
||
"description": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members"
|
||
},
|
||
"send_to_new_members": {
|
||
"type": "boolean",
|
||
"description": "是否在成员新加入群时发送(与 type=20 等价)"
|
||
},
|
||
"is_show_edit_card": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1,
|
||
"description": "是否引导群成员修改群昵称:1=是,0=否",
|
||
"default": 1
|
||
},
|
||
"tip_window_type": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1,
|
||
"description": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)",
|
||
"default": 1
|
||
},
|
||
"confirm_required": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"maximum": 1,
|
||
"description": "是否需要群成员确认收到:1=是,0=否",
|
||
"default": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"content"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "_set_model_show",
|
||
"aliases": [],
|
||
"summary": "设置机型展示(占位)",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": ".get_word_slices",
|
||
"aliases": [],
|
||
"summary": "分词(未实现)",
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "add_custom_face",
|
||
"aliases": [],
|
||
"summary": "添加收藏表情",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "image",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "image"
|
||
}
|
||
},
|
||
"required": [
|
||
"file"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "bot_exit",
|
||
"aliases": [],
|
||
"summary": "退出机器人",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "can_send_image",
|
||
"aliases": [],
|
||
"returns": "能力查询结果。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"yes": {
|
||
"type": "boolean",
|
||
"description": "是否支持发送图片"
|
||
}
|
||
},
|
||
"required": [
|
||
"yes"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "信息"
|
||
},
|
||
{
|
||
"name": "can_send_record",
|
||
"aliases": [],
|
||
"returns": "能力查询结果。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"yes": {
|
||
"type": "boolean",
|
||
"description": "是否支持发送语音"
|
||
}
|
||
},
|
||
"required": [
|
||
"yes"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "信息"
|
||
},
|
||
{
|
||
"name": "cancel_group_album_media_like",
|
||
"aliases": [],
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "album_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "batch_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "lloc",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"album_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"batch_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"lloc": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"album_id",
|
||
"batch_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "cancel_group_todo",
|
||
"aliases": [],
|
||
"summary": "取消群待办",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "check_url_safely",
|
||
"aliases": [],
|
||
"summary": "检查链接安全性",
|
||
"returns": "{ level }:安全等级(占位实现,恒为 1)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"level": {
|
||
"type": "integer",
|
||
"description": "安全等级(占位,恒 1)"
|
||
}
|
||
},
|
||
"required": [
|
||
"level"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "clean_cache",
|
||
"aliases": [],
|
||
"summary": "清理缓存",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "clean_stream_temp_file",
|
||
"aliases": [],
|
||
"summary": "清理流式传输临时文件(仅清理 stream 上传/下载目录)",
|
||
"returns": "{ message, removed }",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "流式接口"
|
||
},
|
||
{
|
||
"name": "click_inline_keyboard_button",
|
||
"aliases": [],
|
||
"summary": "点击内联键盘按钮",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "bot_appid",
|
||
"type": "uint",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "msg_seq",
|
||
"type": "uint",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"bot_appid": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"msg_seq": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"bot_appid",
|
||
"msg_seq"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "comment_qzone",
|
||
"aliases": [],
|
||
"summary": "评论一条说说(QQ 空间,支持纯文字或带图;传 images 自动上传)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "tid",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "说说 tid"
|
||
},
|
||
{
|
||
"name": "content",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "评论内容"
|
||
},
|
||
{
|
||
"name": "target_uin",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "说说所属 QQ 号,省略则为机器人自己"
|
||
},
|
||
{
|
||
"name": "images",
|
||
"type": "string[]",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"desc": "图片数组(可选),支持 file:// http:// base64://;自动上传"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tid": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "说说 tid"
|
||
},
|
||
"content": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "评论内容"
|
||
},
|
||
"target_uin": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "说说所属 QQ 号,省略则为机器人自己",
|
||
"x-role": "user_id"
|
||
},
|
||
"images": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"description": "图片数组(可选),支持 file:// http:// base64://;自动上传"
|
||
}
|
||
},
|
||
"required": [
|
||
"tid",
|
||
"content"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "complete_group_todo",
|
||
"aliases": [],
|
||
"summary": "完成群待办",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "create_collection",
|
||
"aliases": [],
|
||
"summary": "创建收藏(未实现)",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "create_flash_task",
|
||
"aliases": [],
|
||
"summary": "创建闪传任务",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "files",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
},
|
||
{
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "thumb_path",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"files": {},
|
||
"name": {
|
||
"type": "string"
|
||
},
|
||
"thumb_path": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "create_group_file_folder",
|
||
"aliases": [],
|
||
"summary": "创建群文件夹",
|
||
"returns": "{ result: { retCode, retMsg }, groupItem: { folderInfo: { folderId, folderName, folderPath, createTime, modifyTime, createUin, modifyUin } } }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "parent_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "/"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"parent_id": {
|
||
"type": "string",
|
||
"default": "/"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"name"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "del_group_album_media",
|
||
"aliases": [],
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "album_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "lloc",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"album_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"lloc": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"album_id",
|
||
"lloc"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "delete_custom_face",
|
||
"aliases": [],
|
||
"summary": "删除收藏表情",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "emoji_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"emoji_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"emoji_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "delete_essence_msg",
|
||
"aliases": [],
|
||
"summary": "移除精华消息",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "delete_flash_file",
|
||
"aliases": [],
|
||
"summary": "删除闪传文件",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "delete_friend",
|
||
"aliases": [],
|
||
"summary": "删除好友",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
},
|
||
{
|
||
"name": "block",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "user_id"
|
||
},
|
||
"block": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "好友"
|
||
},
|
||
{
|
||
"name": "delete_group_file",
|
||
"aliases": [],
|
||
"summary": "删除群文件",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file_id",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"file_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "delete_group_file_folder",
|
||
"aliases": [],
|
||
"summary": "删除群文件夹",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "folder_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"folder_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"folder_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "delete_group_folder",
|
||
"aliases": [],
|
||
"summary": "删除群文件夹",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "folder_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"folder_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"folder_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "delete_msg",
|
||
"aliases": [],
|
||
"summary": "撤回消息",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "消息"
|
||
},
|
||
{
|
||
"name": "delete_qzone_msg",
|
||
"aliases": [],
|
||
"summary": "删除一条说说(QQ 空间,按 tid)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "tid",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tid": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)"
|
||
}
|
||
},
|
||
"required": [
|
||
"tid"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "do_group_album_comment",
|
||
"aliases": [],
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "album_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "lloc",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "content",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"album_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"lloc": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"content": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"album_id",
|
||
"lloc",
|
||
"content"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "download_file",
|
||
"aliases": [],
|
||
"summary": "下载文件(url 或 base64)到 data/downloads",
|
||
"returns": "{ file }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "url",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "base64",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"base64": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "download_file_image_stream",
|
||
"aliases": [],
|
||
"summary": "以流式方式下载图片(缓存图片 id / URL / stream 目录本地文件)",
|
||
"returns": "流式帧:file_info → file_chunk* → file_complete",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "文件路径(限 stream 临时目录)/ http(s) URL",
|
||
"role": "file"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "文件 ID(缓存的图片/语音 id)",
|
||
"role": "file_id"
|
||
},
|
||
{
|
||
"name": "chunk_size",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "分块大小(字节,默认 64KB)"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"description": "文件路径(限 stream 临时目录)/ http(s) URL",
|
||
"x-role": "file"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"description": "文件 ID(缓存的图片/语音 id)",
|
||
"x-role": "file_id"
|
||
},
|
||
"chunk_size": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "分块大小(字节,默认 64KB)"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"stream": true,
|
||
"category": "流式接口"
|
||
},
|
||
{
|
||
"name": "download_file_record_stream",
|
||
"aliases": [],
|
||
"summary": "以流式方式下载语音(缓存语音 id / URL / stream 目录本地文件)",
|
||
"returns": "流式帧:file_info → file_chunk* → file_complete",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "文件路径(限 stream 临时目录)/ http(s) URL",
|
||
"role": "file"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "文件 ID(缓存的图片/语音 id)",
|
||
"role": "file_id"
|
||
},
|
||
{
|
||
"name": "chunk_size",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "分块大小(字节,默认 64KB)"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"description": "文件路径(限 stream 临时目录)/ http(s) URL",
|
||
"x-role": "file"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"description": "文件 ID(缓存的图片/语音 id)",
|
||
"x-role": "file_id"
|
||
},
|
||
"chunk_size": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "分块大小(字节,默认 64KB)"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"stream": true,
|
||
"category": "流式接口"
|
||
},
|
||
{
|
||
"name": "download_file_stream",
|
||
"aliases": [],
|
||
"summary": "以流式方式下载文件(stream 目录本地文件 / URL / 缓存媒体)",
|
||
"returns": "流式帧:file_info → file_chunk* → file_complete",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "文件路径(限 stream 临时目录)/ http(s) URL",
|
||
"role": "file"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "文件 ID(缓存的图片/语音 id)",
|
||
"role": "file_id"
|
||
},
|
||
{
|
||
"name": "chunk_size",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "分块大小(字节,默认 64KB)"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"description": "文件路径(限 stream 临时目录)/ http(s) URL",
|
||
"x-role": "file"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"description": "文件 ID(缓存的图片/语音 id)",
|
||
"x-role": "file_id"
|
||
},
|
||
"chunk_size": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "分块大小(字节,默认 64KB)"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"stream": true,
|
||
"category": "流式接口"
|
||
},
|
||
{
|
||
"name": "download_fileset",
|
||
"aliases": [],
|
||
"summary": "解析闪传文件下载直链(不下载,由调用方实现下载)",
|
||
"returns": "{ url, file_name, file_size }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "file_name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "file_index",
|
||
"type": "number",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "number"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"file_name": {
|
||
"type": "string"
|
||
},
|
||
"file_index": {
|
||
"type": "number"
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "fetch_custom_face",
|
||
"aliases": [],
|
||
"summary": "获取自定义表情",
|
||
"returns": "字符串数组:return_type=url 时为图片 URL,return_type=id 时为 emoji_id。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"description": "图片 URL 或 emoji_id(取决于 return_type)"
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 10
|
||
},
|
||
{
|
||
"name": "return_type",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "url"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 10
|
||
},
|
||
"return_type": {
|
||
"type": "string",
|
||
"default": "url"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "fetch_emoji_like",
|
||
"aliases": [],
|
||
"summary": "获取表情回应用户(NapCat 分页)",
|
||
"returns": "分页的表情回应用户列表(NapCat 形状),含分页游标 cookie 与首/末页标记。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"result": {
|
||
"type": "integer",
|
||
"description": "结果码(恒 0)"
|
||
},
|
||
"errMsg": {
|
||
"type": "string",
|
||
"description": "错误信息(恒空串)"
|
||
},
|
||
"emojiLikesList": {
|
||
"type": "array",
|
||
"description": "回应用户列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tinyId": {
|
||
"type": "string",
|
||
"description": "用户 QQ 号(字符串)"
|
||
},
|
||
"nickName": {
|
||
"type": "string",
|
||
"description": "昵称(恒空串)"
|
||
},
|
||
"headUrl": {
|
||
"type": "string",
|
||
"description": "头像 URL(恒空串)"
|
||
}
|
||
},
|
||
"required": [
|
||
"tinyId",
|
||
"nickName",
|
||
"headUrl"
|
||
]
|
||
}
|
||
},
|
||
"cookie": {
|
||
"type": "string",
|
||
"description": "下一页游标(末页为空串)"
|
||
},
|
||
"isLastPage": {
|
||
"type": "boolean",
|
||
"description": "是否末页"
|
||
},
|
||
"isFirstPage": {
|
||
"type": "boolean",
|
||
"description": "是否首页"
|
||
}
|
||
},
|
||
"required": [
|
||
"result",
|
||
"errMsg",
|
||
"emojiLikesList",
|
||
"cookie",
|
||
"isLastPage",
|
||
"isFirstPage"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "emojiId",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 10
|
||
},
|
||
{
|
||
"name": "cookie",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"emojiId": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 10
|
||
},
|
||
"cookie": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id",
|
||
"emojiId"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "fetch_ptt_text",
|
||
"aliases": [
|
||
"get_ptt_text",
|
||
"get_record_text"
|
||
],
|
||
"summary": "获取语音转文字结果",
|
||
"returns": "{ text }:语音识别出的文本。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"text": {
|
||
"type": "string",
|
||
"description": "语音转写文本"
|
||
}
|
||
},
|
||
"required": [
|
||
"text"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "message_id"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "string",
|
||
"default": "",
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "forward_friend_single_msg",
|
||
"aliases": [],
|
||
"summary": "转发单条消息给好友",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "forward_group_single_msg",
|
||
"aliases": [],
|
||
"summary": "转发单条消息到群",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id",
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "friend_poke",
|
||
"aliases": [],
|
||
"summary": "好友拍一拍",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "target_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"target_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_ai_characters",
|
||
"aliases": [],
|
||
"summary": "获取 AI 语音角色",
|
||
"returns": "按分类分组的 AI 语音角色列表,每组含分类名与角色(id、名称、试听 URL)。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"description": "角色分类名"
|
||
},
|
||
"characters": {
|
||
"type": "array",
|
||
"description": "该分类下的角色列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"character_id": {
|
||
"type": "string",
|
||
"description": "角色 ID"
|
||
},
|
||
"character_name": {
|
||
"type": "string",
|
||
"description": "角色显示名"
|
||
},
|
||
"preview_url": {
|
||
"type": "string",
|
||
"description": "试听音频 URL"
|
||
}
|
||
},
|
||
"required": [
|
||
"character_id",
|
||
"character_name",
|
||
"preview_url"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"type",
|
||
"characters"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "chat_type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 1
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"chat_type": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_ai_record",
|
||
"aliases": [],
|
||
"summary": "生成 AI 语音",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "character",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "text",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "chat_type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 1
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"character": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"text": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"chat_type": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"character",
|
||
"text"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_clientkey",
|
||
"aliases": [],
|
||
"summary": "获取 clientkey",
|
||
"returns": "{ clientKey, expireTime, keyIndex }:clientkey 及其过期时间与索引。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"clientKey": {
|
||
"type": "string",
|
||
"description": "clientkey"
|
||
},
|
||
"expireTime": {
|
||
"type": "string",
|
||
"description": "过期时间"
|
||
},
|
||
"keyIndex": {
|
||
"type": "string",
|
||
"description": "key 索引"
|
||
}
|
||
},
|
||
"required": [
|
||
"clientKey",
|
||
"expireTime",
|
||
"keyIndex"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_collection_list",
|
||
"aliases": [],
|
||
"summary": "获取收藏列表",
|
||
"returns": "返回收藏条目、是否还有更多数据及底部时间游标。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"errCode": {
|
||
"type": "integer"
|
||
},
|
||
"errMsg": {
|
||
"type": "string"
|
||
},
|
||
"collectionSearchList": {
|
||
"type": "object",
|
||
"properties": {
|
||
"collectionItemList": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"cid": {
|
||
"type": "string"
|
||
},
|
||
"type": {
|
||
"type": "integer"
|
||
},
|
||
"status": {
|
||
"type": "integer"
|
||
},
|
||
"author": {
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "integer"
|
||
},
|
||
"numId": {
|
||
"type": "string"
|
||
},
|
||
"strId": {
|
||
"type": "string"
|
||
},
|
||
"groupId": {
|
||
"type": "string"
|
||
},
|
||
"groupName": {
|
||
"type": "string"
|
||
},
|
||
"uid": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"type",
|
||
"numId",
|
||
"strId",
|
||
"groupId",
|
||
"groupName",
|
||
"uid"
|
||
]
|
||
},
|
||
"bid": {
|
||
"type": "integer"
|
||
},
|
||
"category": {
|
||
"type": "integer"
|
||
},
|
||
"createTime": {
|
||
"type": "string"
|
||
},
|
||
"collectTime": {
|
||
"type": "string"
|
||
},
|
||
"modifyTime": {
|
||
"type": "string"
|
||
},
|
||
"sequence": {
|
||
"type": "string"
|
||
},
|
||
"shareUrl": {
|
||
"type": "string"
|
||
},
|
||
"customGroupId": {
|
||
"type": "integer"
|
||
},
|
||
"securityBeat": {
|
||
"type": "boolean"
|
||
},
|
||
"summary": {
|
||
"type": "object",
|
||
"properties": {
|
||
"textSummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
},
|
||
"linkSummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
},
|
||
"gallerySummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
},
|
||
"audioSummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
},
|
||
"videoSummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
},
|
||
"fileSummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
},
|
||
"locationSummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
},
|
||
"richMediaSummary": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"textSummary",
|
||
"linkSummary",
|
||
"gallerySummary",
|
||
"audioSummary",
|
||
"videoSummary",
|
||
"fileSummary",
|
||
"locationSummary",
|
||
"richMediaSummary"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"cid",
|
||
"type",
|
||
"status",
|
||
"author",
|
||
"bid",
|
||
"category",
|
||
"createTime",
|
||
"collectTime",
|
||
"modifyTime",
|
||
"sequence",
|
||
"shareUrl",
|
||
"customGroupId",
|
||
"securityBeat",
|
||
"summary"
|
||
]
|
||
}
|
||
},
|
||
"hasMore": {
|
||
"type": "boolean"
|
||
},
|
||
"bottomTimeStamp": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"collectionItemList",
|
||
"hasMore",
|
||
"bottomTimeStamp"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"errCode",
|
||
"errMsg",
|
||
"collectionSearchList"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "category",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"desc": "收藏分类 ID;0 表示全部分类",
|
||
"default": 0
|
||
},
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 500
|
||
},
|
||
"desc": "最多返回的收藏数量",
|
||
"default": 50
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"category": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "收藏分类 ID;0 表示全部分类",
|
||
"default": 0
|
||
},
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 500,
|
||
"description": "最多返回的收藏数量",
|
||
"default": 50
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_cookies",
|
||
"aliases": [],
|
||
"summary": "获取 Cookies",
|
||
"returns": "{ cookies }:指定域名的 Cookie 字符串。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"cookies": {
|
||
"type": "string",
|
||
"description": "该域名的 Cookie 字符串"
|
||
}
|
||
},
|
||
"required": [
|
||
"cookies"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "domain",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "qun.qq.com"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"domain": {
|
||
"type": "string",
|
||
"default": "qun.qq.com"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_credentials",
|
||
"aliases": [],
|
||
"summary": "获取凭证",
|
||
"returns": "{ cookies, token, csrf_token }:Cookie 字符串与 CSRF 令牌(token 与 csrf_token 同值)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"cookies": {
|
||
"type": "string",
|
||
"description": "该域名的 Cookie 字符串"
|
||
},
|
||
"token": {
|
||
"type": "integer",
|
||
"description": "CSRF 令牌(bkn)"
|
||
},
|
||
"csrf_token": {
|
||
"type": "integer",
|
||
"description": "CSRF 令牌(同 token)"
|
||
}
|
||
},
|
||
"required": [
|
||
"cookies",
|
||
"token",
|
||
"csrf_token"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "domain",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "qun.qq.com"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"domain": {
|
||
"type": "string",
|
||
"default": "qun.qq.com"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_csrf_token",
|
||
"aliases": [],
|
||
"summary": "获取 CSRF 令牌",
|
||
"returns": "{ token }:CSRF 令牌(bkn,数值)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"token": {
|
||
"type": "integer",
|
||
"description": "CSRF 令牌(bkn)"
|
||
}
|
||
},
|
||
"required": [
|
||
"token"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_doubt_friends_add_request",
|
||
"aliases": [],
|
||
"summary": "获取可疑好友申请",
|
||
"returns": "可疑好友申请数组,每项含 uid(作为处理用 flag)、昵称、来源、留言与申请时间。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"uid": {
|
||
"type": "string",
|
||
"description": "申请人 uid(回传作 set_doubt_friends_add_request 的 flag)"
|
||
},
|
||
"nick": {
|
||
"type": "string",
|
||
"description": "申请人昵称"
|
||
},
|
||
"source": {
|
||
"type": "string",
|
||
"description": "申请来源"
|
||
},
|
||
"msg": {
|
||
"type": "string",
|
||
"description": "验证留言"
|
||
},
|
||
"reqTime": {
|
||
"type": "integer",
|
||
"description": "申请时间戳"
|
||
}
|
||
},
|
||
"required": [
|
||
"uid",
|
||
"nick",
|
||
"source",
|
||
"msg",
|
||
"reqTime"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 50
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 50
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_emoji_likes",
|
||
"aliases": [],
|
||
"summary": "获取表情回应用户",
|
||
"returns": "{ emoji_like_list }:回应该表情的用户列表(nick_name 恒为空串)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"emoji_like_list": {
|
||
"type": "array",
|
||
"description": "回应用户列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "string",
|
||
"description": "用户 QQ 号(字符串)"
|
||
},
|
||
"nick_name": {
|
||
"type": "string",
|
||
"description": "昵称(当前实现恒为空串)"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"nick_name"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"emoji_like_list"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "emoji_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"emoji_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id",
|
||
"emoji_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_essence_msg_list",
|
||
"aliases": [],
|
||
"summary": "获取精华消息列表",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_file",
|
||
"aliases": [],
|
||
"summary": "获取文件信息(仅图片/语音缓存;群文件请用 get_group_file_url)",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "file_id"
|
||
},
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "file"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file_id": {
|
||
"type": "string",
|
||
"default": "",
|
||
"x-role": "file_id"
|
||
},
|
||
"file": {
|
||
"type": "string",
|
||
"default": "",
|
||
"x-role": "file"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_fileset_id",
|
||
"aliases": [],
|
||
"summary": "从分享码/链接获取 fileset_id",
|
||
"returns": "{ fileset_id }:解析出的文件集 ID。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"description": "文件集 ID"
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "share_code",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"share_code": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"share_code"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_fileset_info",
|
||
"aliases": [],
|
||
"summary": "获取文件集信息",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_flash_file_list",
|
||
"aliases": [],
|
||
"summary": "获取闪传文件列表",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_flash_file_url",
|
||
"aliases": [],
|
||
"summary": "获取闪传文件链接",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "file_name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "file_index",
|
||
"type": "number",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "number"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"file_name": {
|
||
"type": "string"
|
||
},
|
||
"file_index": {
|
||
"type": "number"
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_forward_msg",
|
||
"aliases": [],
|
||
"summary": "获取合并转发消息(id 或 message_id)",
|
||
"returns": "{ messages }:转发内的消息节点数组(每项为 OneBot 消息事件,内部字段不固定)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"messages": {
|
||
"type": "array",
|
||
"description": "转发消息节点数组",
|
||
"items": {
|
||
"type": "object"
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"messages"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_friend_list",
|
||
"aliases": [],
|
||
"summary": "获取好友列表",
|
||
"returns": "好友列表数组,每项含 QQ 号、昵称与备注。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"description": "好友 QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "好友昵称"
|
||
},
|
||
"remark": {
|
||
"type": "string",
|
||
"description": "好友备注"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"nickname",
|
||
"remark"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "好友"
|
||
},
|
||
{
|
||
"name": "get_friend_msg_history",
|
||
"aliases": [],
|
||
"summary": "获取好友消息历史(无锚点时从服务器获取最新双向记录)",
|
||
"returns": "{ messages }:好友消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"messages": {
|
||
"type": "array",
|
||
"description": "消息事件对象数组",
|
||
"items": {
|
||
"type": "object"
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"messages"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "message_id",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
},
|
||
"default": 0,
|
||
"role": "message_id"
|
||
},
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 20,
|
||
"desc": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存"
|
||
},
|
||
{
|
||
"name": "reverse_order",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true,
|
||
"desc": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"message_id": {
|
||
"type": "integer",
|
||
"default": 0,
|
||
"x-role": "message_id"
|
||
},
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存",
|
||
"default": 20
|
||
},
|
||
"reverse_order": {
|
||
"type": "boolean",
|
||
"description": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_friends_with_category",
|
||
"aliases": [],
|
||
"summary": "获取分组好友列表",
|
||
"returns": "好友分组数组;每组包含 categoryId、categoryName、categoryMbCount 和 buddyList。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"description": "带分组的好友列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"categoryId": {
|
||
"type": "integer",
|
||
"description": "分组 ID"
|
||
},
|
||
"categoryName": {
|
||
"type": "string",
|
||
"description": "分组名称"
|
||
},
|
||
"categoryMbCount": {
|
||
"type": "integer",
|
||
"description": "服务端报告的分组好友数"
|
||
},
|
||
"buddyList": {
|
||
"type": "array",
|
||
"description": "该分组内的好友",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"description": "QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "昵称"
|
||
},
|
||
"remark": {
|
||
"type": "string",
|
||
"description": "好友备注"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"nickname",
|
||
"remark"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"categoryId",
|
||
"categoryName",
|
||
"categoryMbCount",
|
||
"buddyList"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_album_list",
|
||
"aliases": [],
|
||
"returns": "群相册列表数组,每项为一个相册的基本信息。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"description": "群相册列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "相册 id"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "相册名称"
|
||
},
|
||
"picNum": {
|
||
"type": "integer",
|
||
"description": "相册内照片数量"
|
||
},
|
||
"createTime": {
|
||
"type": "integer",
|
||
"description": "相册创建时间(unix 秒)"
|
||
},
|
||
"last_upload_time": {
|
||
"type": "integer",
|
||
"description": "最后上传时间(unix 秒)"
|
||
},
|
||
"cover": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"description": "相册封面;没有封面时为 null",
|
||
"properties": {
|
||
"type": {
|
||
"type": "integer",
|
||
"description": "封面媒体类型"
|
||
},
|
||
"image": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"description": "封面图片信息",
|
||
"properties": {
|
||
"name": {
|
||
"type": "string",
|
||
"description": "图片名称"
|
||
},
|
||
"sloc": {
|
||
"type": "string",
|
||
"description": "图片短定位标识"
|
||
},
|
||
"lloc": {
|
||
"type": "string",
|
||
"description": "图片长定位标识"
|
||
},
|
||
"photoUrls": {
|
||
"type": "array",
|
||
"description": "不同规格的封面地址",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"spec": {
|
||
"type": "integer",
|
||
"description": "图片规格"
|
||
},
|
||
"url": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "封面地址"
|
||
},
|
||
"width": {
|
||
"type": "integer",
|
||
"description": "封面宽度"
|
||
},
|
||
"height": {
|
||
"type": "integer",
|
||
"description": "封面高度"
|
||
}
|
||
},
|
||
"required": [
|
||
"url",
|
||
"width",
|
||
"height"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"spec",
|
||
"url"
|
||
]
|
||
}
|
||
},
|
||
"defaultUrl": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "封面地址"
|
||
},
|
||
"width": {
|
||
"type": "integer",
|
||
"description": "封面宽度"
|
||
},
|
||
"height": {
|
||
"type": "integer",
|
||
"description": "封面高度"
|
||
}
|
||
},
|
||
"required": [
|
||
"url",
|
||
"width",
|
||
"height"
|
||
]
|
||
},
|
||
"isGif": {
|
||
"type": "boolean",
|
||
"description": "是否为动图"
|
||
},
|
||
"hasRaw": {
|
||
"type": "boolean",
|
||
"description": "是否有原图"
|
||
}
|
||
},
|
||
"required": [
|
||
"name",
|
||
"sloc",
|
||
"lloc",
|
||
"photoUrls",
|
||
"defaultUrl",
|
||
"isGif",
|
||
"hasRaw"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"type",
|
||
"image"
|
||
]
|
||
},
|
||
"createuin": {
|
||
"type": "string",
|
||
"description": "相册创建者 QQ 号"
|
||
},
|
||
"createnickname": {
|
||
"type": "string",
|
||
"description": "相册创建者昵称(原始 Unicode)"
|
||
}
|
||
},
|
||
"required": [
|
||
"id",
|
||
"name",
|
||
"picNum",
|
||
"createTime",
|
||
"last_upload_time",
|
||
"cover",
|
||
"createuin",
|
||
"createnickname"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "get_group_album_media_list",
|
||
"aliases": [],
|
||
"returns": "相册媒体列表及下一页分页游标:{mediaList, nextAttachInfo}。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"mediaList": {
|
||
"type": "array",
|
||
"description": "相册媒体项列表(各项字段不固定)",
|
||
"items": {
|
||
"type": "object"
|
||
}
|
||
},
|
||
"nextAttachInfo": {
|
||
"type": "string",
|
||
"description": "下一页分页游标(空串表示无更多)"
|
||
}
|
||
},
|
||
"required": [
|
||
"mediaList",
|
||
"nextAttachInfo"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "album_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "attach_info",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"album_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"attach_info": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"album_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "get_group_at_all_remain",
|
||
"aliases": [],
|
||
"summary": "获取群 @全体成员 剩余次数",
|
||
"returns": "{ can_at_all, remain_at_all_count_for_group, remain_at_all_count_for_uin }:@全体可用性与剩余次数。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"can_at_all": {
|
||
"type": "boolean",
|
||
"description": "当前是否可 @全体成员"
|
||
},
|
||
"remain_at_all_count_for_group": {
|
||
"type": "integer",
|
||
"description": "本群今日剩余 @全体次数"
|
||
},
|
||
"remain_at_all_count_for_uin": {
|
||
"type": "integer",
|
||
"description": "本账号今日剩余 @全体次数"
|
||
}
|
||
},
|
||
"required": [
|
||
"can_at_all",
|
||
"remain_at_all_count_for_group",
|
||
"remain_at_all_count_for_uin"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_detail_info",
|
||
"aliases": [],
|
||
"summary": "获取群详细信息",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_file_system_info",
|
||
"aliases": [],
|
||
"summary": "获取群文件系统信息",
|
||
"returns": "{ file_count, limit_count, used_space, total_space }:群文件数量与容量信息(均为服务端实际值)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file_count": {
|
||
"type": "integer",
|
||
"description": "当前文件数"
|
||
},
|
||
"limit_count": {
|
||
"type": "integer",
|
||
"description": "文件数上限"
|
||
},
|
||
"used_space": {
|
||
"type": "integer",
|
||
"description": "已用空间(字节)"
|
||
},
|
||
"total_space": {
|
||
"type": "integer",
|
||
"description": "总空间(字节)"
|
||
}
|
||
},
|
||
"required": [
|
||
"file_count",
|
||
"limit_count",
|
||
"used_space",
|
||
"total_space"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_file_url",
|
||
"aliases": [],
|
||
"summary": "获取群文件下载链接",
|
||
"returns": "群文件下载链接。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "文件下载直链"
|
||
}
|
||
},
|
||
"required": [
|
||
"url"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file_id",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "busid",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file_id"
|
||
},
|
||
"busid": {}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"file_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "get_group_files_by_folder",
|
||
"aliases": [],
|
||
"summary": "获取群子目录文件列表",
|
||
"returns": "群文件系统信息(文件与文件夹列表)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"files": {
|
||
"type": "array",
|
||
"description": "文件列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"description": "文件 ID"
|
||
},
|
||
"file_name": {
|
||
"type": "string",
|
||
"description": "文件名"
|
||
},
|
||
"busid": {
|
||
"type": "integer",
|
||
"description": "业务 ID"
|
||
},
|
||
"file_size": {
|
||
"type": "integer",
|
||
"description": "文件大小(字节)"
|
||
},
|
||
"upload_time": {
|
||
"type": "integer",
|
||
"description": "上传时间戳"
|
||
},
|
||
"dead_time": {
|
||
"type": "integer",
|
||
"description": "过期时间戳"
|
||
},
|
||
"modify_time": {
|
||
"type": "integer",
|
||
"description": "修改时间戳"
|
||
},
|
||
"download_times": {
|
||
"type": "integer",
|
||
"description": "下载次数"
|
||
},
|
||
"uploader": {
|
||
"type": "integer",
|
||
"description": "上传者 QQ 号"
|
||
},
|
||
"uploader_name": {
|
||
"type": "string",
|
||
"description": "上传者昵称"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"folders": {
|
||
"type": "array",
|
||
"description": "文件夹列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"folder_id": {
|
||
"type": "string",
|
||
"description": "文件夹 ID"
|
||
},
|
||
"folder_name": {
|
||
"type": "string",
|
||
"description": "文件夹名"
|
||
},
|
||
"create_time": {
|
||
"type": "integer",
|
||
"description": "创建时间戳"
|
||
},
|
||
"creator": {
|
||
"type": "integer",
|
||
"description": "创建者 QQ 号"
|
||
},
|
||
"create_name": {
|
||
"type": "string",
|
||
"description": "创建者昵称"
|
||
},
|
||
"total_file_count": {
|
||
"type": "integer",
|
||
"description": "文件夹内文件总数"
|
||
},
|
||
"last_upload_time": {
|
||
"type": "integer",
|
||
"description": "最后上传时间戳"
|
||
},
|
||
"last_uploader": {
|
||
"type": "integer",
|
||
"description": "最后上传者 QQ 号"
|
||
},
|
||
"last_uploader_name": {
|
||
"type": "string",
|
||
"description": "最后上传者昵称"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"files",
|
||
"folders"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "folder_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "folder",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"folder_id": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"folder": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "get_group_honor_info",
|
||
"aliases": [],
|
||
"summary": "获取群荣誉信息",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "type",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"type": {}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群信息"
|
||
},
|
||
{
|
||
"name": "get_group_ignore_add_request",
|
||
"aliases": [],
|
||
"summary": "获取被忽略的入群请求(NapCat)",
|
||
"returns": "被忽略的入群请求数组(NapCat 字段命名),每项含请求序列、邀请人、群信息与处理标记。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"request_id": {
|
||
"type": "integer",
|
||
"description": "请求序列号"
|
||
},
|
||
"invitor_uin": {
|
||
"type": "integer",
|
||
"description": "邀请人 QQ 号"
|
||
},
|
||
"invitor_nick": {
|
||
"type": "string",
|
||
"description": "邀请人昵称"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"message": {
|
||
"type": "string",
|
||
"description": "验证留言"
|
||
},
|
||
"group_name": {
|
||
"type": "string",
|
||
"description": "群名称"
|
||
},
|
||
"checked": {
|
||
"type": "boolean",
|
||
"description": "是否已处理"
|
||
},
|
||
"actor": {
|
||
"type": "integer",
|
||
"description": "处理人 QQ 号"
|
||
},
|
||
"requester_nick": {
|
||
"type": "string",
|
||
"description": "申请人昵称"
|
||
}
|
||
},
|
||
"required": [
|
||
"request_id",
|
||
"invitor_uin",
|
||
"invitor_nick",
|
||
"group_id",
|
||
"message",
|
||
"group_name",
|
||
"checked",
|
||
"actor",
|
||
"requester_nick"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_ignored_notifies",
|
||
"aliases": [],
|
||
"summary": "获取被过滤的入群请求",
|
||
"returns": "被过滤的入群请求数组,每项含群号、申请人、邀请人、留言与处理标记。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"group_name": {
|
||
"type": "string",
|
||
"description": "群名称"
|
||
},
|
||
"request_id": {
|
||
"type": "integer",
|
||
"description": "请求序列号"
|
||
},
|
||
"requester_uin": {
|
||
"type": "integer",
|
||
"description": "申请人 QQ 号"
|
||
},
|
||
"requester_nick": {
|
||
"type": "string",
|
||
"description": "申请人昵称"
|
||
},
|
||
"message": {
|
||
"type": "string",
|
||
"description": "验证留言"
|
||
},
|
||
"checked": {
|
||
"type": "boolean",
|
||
"description": "是否已处理"
|
||
},
|
||
"actor": {
|
||
"type": "integer",
|
||
"description": "处理人 QQ 号"
|
||
},
|
||
"invitor_uin": {
|
||
"type": "integer",
|
||
"description": "邀请人 QQ 号"
|
||
},
|
||
"invitor_nick": {
|
||
"type": "string",
|
||
"description": "邀请人昵称"
|
||
},
|
||
"flag": {
|
||
"type": "string",
|
||
"description": "处理用 flag(eventType:groupId:targetUid:filtered)"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"group_name",
|
||
"request_id",
|
||
"requester_uin",
|
||
"requester_nick",
|
||
"message",
|
||
"checked",
|
||
"actor",
|
||
"invitor_uin",
|
||
"invitor_nick",
|
||
"flag"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_info",
|
||
"aliases": [],
|
||
"summary": "获取群信息",
|
||
"returns": "群信息对象。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"group_name": {
|
||
"type": "string",
|
||
"description": "群名"
|
||
},
|
||
"member_count": {
|
||
"type": "integer",
|
||
"description": "当前成员数"
|
||
},
|
||
"max_member_count": {
|
||
"type": "integer",
|
||
"description": "成员上限"
|
||
},
|
||
"group_create_time": {
|
||
"type": "integer",
|
||
"description": "建群时间戳(秒)"
|
||
},
|
||
"group_level": {
|
||
"type": "integer",
|
||
"description": "群等级"
|
||
},
|
||
"group_memo": {
|
||
"type": "string",
|
||
"description": "群简介 / 公告预览"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"group_name",
|
||
"member_count",
|
||
"max_member_count"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "no_cache",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"no_cache": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群信息"
|
||
},
|
||
{
|
||
"name": "get_group_info_ex",
|
||
"aliases": [],
|
||
"summary": "获取群信息(扩展)",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_list",
|
||
"aliases": [],
|
||
"summary": "获取群列表",
|
||
"returns": "群信息对象数组。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"group_name": {
|
||
"type": "string",
|
||
"description": "群名"
|
||
},
|
||
"member_count": {
|
||
"type": "integer",
|
||
"description": "当前成员数"
|
||
},
|
||
"max_member_count": {
|
||
"type": "integer",
|
||
"description": "成员上限"
|
||
},
|
||
"group_create_time": {
|
||
"type": "integer",
|
||
"description": "建群时间戳(秒)"
|
||
},
|
||
"group_level": {
|
||
"type": "integer",
|
||
"description": "群等级(列表批量场景恒 0,详见 get_group_info)"
|
||
},
|
||
"group_memo": {
|
||
"type": "string",
|
||
"description": "群简介 / 公告预览"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"group_name",
|
||
"member_count",
|
||
"max_member_count"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "no_cache",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"no_cache": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群信息"
|
||
},
|
||
{
|
||
"name": "get_group_member_info",
|
||
"aliases": [],
|
||
"summary": "获取群成员信息",
|
||
"returns": "群成员信息对象。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"description": "QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "昵称"
|
||
},
|
||
"card": {
|
||
"type": "string",
|
||
"description": "群名片"
|
||
},
|
||
"sex": {
|
||
"type": "string",
|
||
"enum": [
|
||
"male",
|
||
"female",
|
||
"unknown"
|
||
],
|
||
"description": "性别"
|
||
},
|
||
"age": {
|
||
"type": "integer",
|
||
"description": "年龄"
|
||
},
|
||
"join_time": {
|
||
"type": "integer",
|
||
"description": "入群时间戳(秒)"
|
||
},
|
||
"last_sent_time": {
|
||
"type": "integer",
|
||
"description": "最后发言时间戳(秒)"
|
||
},
|
||
"level": {
|
||
"type": "string",
|
||
"description": "群等级"
|
||
},
|
||
"role": {
|
||
"type": "string",
|
||
"enum": [
|
||
"owner",
|
||
"admin",
|
||
"member"
|
||
],
|
||
"description": "角色"
|
||
},
|
||
"title": {
|
||
"type": "string",
|
||
"description": "专属头衔"
|
||
},
|
||
"area": {
|
||
"type": "string",
|
||
"description": "地区(QQ NT 不提供,恒空)"
|
||
},
|
||
"unfriendly": {
|
||
"type": "boolean",
|
||
"description": "是否不良记录(QQ NT 不提供,恒 false)"
|
||
},
|
||
"title_expire_time": {
|
||
"type": "integer",
|
||
"description": "头衔过期时间戳(QQ NT 不提供,恒 0)"
|
||
},
|
||
"card_changeable": {
|
||
"type": "boolean",
|
||
"description": "是否可改名片(占位,恒 true)"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id",
|
||
"nickname",
|
||
"role"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "member_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
},
|
||
{
|
||
"name": "no_cache",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "member_id"
|
||
},
|
||
"no_cache": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群信息"
|
||
},
|
||
{
|
||
"name": "get_group_member_list",
|
||
"aliases": [],
|
||
"summary": "获取群成员列表",
|
||
"returns": "群成员信息对象数组。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"description": "QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "昵称"
|
||
},
|
||
"card": {
|
||
"type": "string",
|
||
"description": "群名片"
|
||
},
|
||
"sex": {
|
||
"type": "string",
|
||
"enum": [
|
||
"male",
|
||
"female",
|
||
"unknown"
|
||
],
|
||
"description": "性别"
|
||
},
|
||
"age": {
|
||
"type": "integer",
|
||
"description": "年龄"
|
||
},
|
||
"join_time": {
|
||
"type": "integer",
|
||
"description": "入群时间戳(秒)"
|
||
},
|
||
"last_sent_time": {
|
||
"type": "integer",
|
||
"description": "最后发言时间戳(秒)"
|
||
},
|
||
"level": {
|
||
"type": "string",
|
||
"description": "群等级"
|
||
},
|
||
"role": {
|
||
"type": "string",
|
||
"enum": [
|
||
"owner",
|
||
"admin",
|
||
"member"
|
||
],
|
||
"description": "角色"
|
||
},
|
||
"title": {
|
||
"type": "string",
|
||
"description": "专属头衔"
|
||
},
|
||
"area": {
|
||
"type": "string",
|
||
"description": "地区(QQ NT 不提供,恒空)"
|
||
},
|
||
"unfriendly": {
|
||
"type": "boolean",
|
||
"description": "是否不良记录(QQ NT 不提供,恒 false)"
|
||
},
|
||
"title_expire_time": {
|
||
"type": "integer",
|
||
"description": "头衔过期时间戳(QQ NT 不提供,恒 0)"
|
||
},
|
||
"card_changeable": {
|
||
"type": "boolean",
|
||
"description": "是否可改名片(占位,恒 true)"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id",
|
||
"nickname",
|
||
"role"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "no_cache",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"no_cache": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群信息"
|
||
},
|
||
{
|
||
"name": "get_group_msg_history",
|
||
"aliases": [],
|
||
"summary": "获取群消息历史",
|
||
"returns": "{ messages }:群消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"messages": {
|
||
"type": "array",
|
||
"description": "消息事件对象数组",
|
||
"items": {
|
||
"type": "object"
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"messages"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "message_id",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
},
|
||
"default": 0,
|
||
"role": "message_id"
|
||
},
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 20
|
||
},
|
||
{
|
||
"name": "reverse_order",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true,
|
||
"desc": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"message_id": {
|
||
"type": "integer",
|
||
"default": 0,
|
||
"x-role": "message_id"
|
||
},
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 20
|
||
},
|
||
"reverse_order": {
|
||
"type": "boolean",
|
||
"description": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_root_files",
|
||
"aliases": [],
|
||
"summary": "获取群根目录文件列表",
|
||
"returns": "群文件系统信息(文件与文件夹列表)。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"files": {
|
||
"type": "array",
|
||
"description": "文件列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"description": "文件 ID"
|
||
},
|
||
"file_name": {
|
||
"type": "string",
|
||
"description": "文件名"
|
||
},
|
||
"busid": {
|
||
"type": "integer",
|
||
"description": "业务 ID"
|
||
},
|
||
"file_size": {
|
||
"type": "integer",
|
||
"description": "文件大小(字节)"
|
||
},
|
||
"upload_time": {
|
||
"type": "integer",
|
||
"description": "上传时间戳"
|
||
},
|
||
"dead_time": {
|
||
"type": "integer",
|
||
"description": "过期时间戳"
|
||
},
|
||
"modify_time": {
|
||
"type": "integer",
|
||
"description": "修改时间戳"
|
||
},
|
||
"download_times": {
|
||
"type": "integer",
|
||
"description": "下载次数"
|
||
},
|
||
"uploader": {
|
||
"type": "integer",
|
||
"description": "上传者 QQ 号"
|
||
},
|
||
"uploader_name": {
|
||
"type": "string",
|
||
"description": "上传者昵称"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"folders": {
|
||
"type": "array",
|
||
"description": "文件夹列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"folder_id": {
|
||
"type": "string",
|
||
"description": "文件夹 ID"
|
||
},
|
||
"folder_name": {
|
||
"type": "string",
|
||
"description": "文件夹名"
|
||
},
|
||
"create_time": {
|
||
"type": "integer",
|
||
"description": "创建时间戳"
|
||
},
|
||
"creator": {
|
||
"type": "integer",
|
||
"description": "创建者 QQ 号"
|
||
},
|
||
"create_name": {
|
||
"type": "string",
|
||
"description": "创建者昵称"
|
||
},
|
||
"total_file_count": {
|
||
"type": "integer",
|
||
"description": "文件夹内文件总数"
|
||
},
|
||
"last_upload_time": {
|
||
"type": "integer",
|
||
"description": "最后上传时间戳"
|
||
},
|
||
"last_uploader": {
|
||
"type": "integer",
|
||
"description": "最后上传者 QQ 号"
|
||
},
|
||
"last_uploader_name": {
|
||
"type": "string",
|
||
"description": "最后上传者昵称"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"files",
|
||
"folders"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "get_group_shut_list",
|
||
"aliases": [],
|
||
"summary": "获取群禁言列表",
|
||
"returns": "仍在禁言中的成员数组,每项含 QQ 号、昵称与禁言到期时间戳(秒)。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"description": "成员 QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "成员昵称"
|
||
},
|
||
"shut_up_time": {
|
||
"type": "integer",
|
||
"description": "禁言到期时间戳(秒)"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"nickname",
|
||
"shut_up_time"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_signed_list",
|
||
"aliases": [],
|
||
"summary": "获取群今日打卡列表",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_group_system_msg",
|
||
"aliases": [],
|
||
"summary": "获取群系统消息",
|
||
"returns": "群系统消息数组,可按群号或未处理状态过滤。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"description": "群号"
|
||
},
|
||
"group_name": {
|
||
"type": "string",
|
||
"description": "群名称"
|
||
},
|
||
"request_id": {
|
||
"type": "integer",
|
||
"description": "请求序列号"
|
||
},
|
||
"requester_uin": {
|
||
"type": "integer",
|
||
"description": "申请人 QQ 号"
|
||
},
|
||
"requester_nick": {
|
||
"type": "string",
|
||
"description": "申请人昵称"
|
||
},
|
||
"message": {
|
||
"type": "string",
|
||
"description": "验证留言"
|
||
},
|
||
"checked": {
|
||
"type": "boolean",
|
||
"description": "是否已处理"
|
||
},
|
||
"flag": {
|
||
"type": "string",
|
||
"description": "处理请求使用的规范 flag"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"group_name",
|
||
"request_id",
|
||
"requester_uin",
|
||
"requester_nick",
|
||
"message",
|
||
"checked",
|
||
"flag"
|
||
]
|
||
}
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "only_pending",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
},
|
||
"only_pending": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群信息"
|
||
},
|
||
{
|
||
"name": "get_image",
|
||
"aliases": [],
|
||
"summary": "获取图片信息",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "image"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "file_id"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"default": "",
|
||
"x-role": "image"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"default": "",
|
||
"x-role": "file_id"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_login_info",
|
||
"aliases": [],
|
||
"returns": "当前登录账号的 QQ 号与昵称。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"description": "登录 QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "登录昵称"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"nickname"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "信息"
|
||
},
|
||
{
|
||
"name": "get_mini_app_ark",
|
||
"aliases": [],
|
||
"summary": "获取小程序卡片 ark",
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_msg",
|
||
"aliases": [],
|
||
"summary": "获取消息",
|
||
"returns": "消息事件对象(首次收到时存储的副本,已去除 post_type/self_id、附带 real_id 字段并刷新图片 URL)。",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "消息"
|
||
},
|
||
{
|
||
"name": "get_online_clients",
|
||
"aliases": [],
|
||
"summary": "获取在线客户端",
|
||
"returns": "{ clients }:QQ 本次会话最近推送的在线设备快照。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"clients": {
|
||
"type": "array",
|
||
"description": "在线设备列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"app_id": {
|
||
"type": "integer",
|
||
"description": "客户端 ID"
|
||
},
|
||
"device_name": {
|
||
"type": "string",
|
||
"description": "设备名称"
|
||
},
|
||
"device_kind": {
|
||
"type": "string",
|
||
"enum": [
|
||
"电脑",
|
||
"Pad",
|
||
"手机",
|
||
"未知设备"
|
||
],
|
||
"description": "设备类别"
|
||
}
|
||
},
|
||
"required": [
|
||
"app_id",
|
||
"device_name",
|
||
"device_kind"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"clients"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "no_cache",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false,
|
||
"desc": "是否强制刷新;QQ 当前仅暴露本地快照,true 会明确失败"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"no_cache": {
|
||
"type": "boolean",
|
||
"description": "是否强制刷新;QQ 当前仅暴露本地快照,true 会明确失败",
|
||
"default": false
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_private_file_url",
|
||
"aliases": [],
|
||
"summary": "获取私聊文件下载链接",
|
||
"returns": "私聊文件下载链接。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "文件下载直链"
|
||
}
|
||
},
|
||
"required": [
|
||
"url"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file_id",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "file_hash",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file_id"
|
||
},
|
||
"file_hash": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"file_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "get_profile_like",
|
||
"aliases": [],
|
||
"summary": "获取资料点赞",
|
||
"returns": "点赞资料:uid、最近点赞时间、收藏(favoriteInfo)与点赞(voteInfo)统计。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"uid": {
|
||
"type": "string",
|
||
"description": "用户 uid"
|
||
},
|
||
"time": {
|
||
"type": "integer",
|
||
"description": "最近点赞时间戳"
|
||
},
|
||
"favoriteInfo": {
|
||
"type": "object",
|
||
"description": "收藏统计",
|
||
"properties": {
|
||
"total_count": {
|
||
"type": "integer",
|
||
"description": "收藏总数"
|
||
},
|
||
"last_time": {
|
||
"type": "integer",
|
||
"description": "最近收藏时间戳"
|
||
},
|
||
"today_count": {
|
||
"type": "integer",
|
||
"description": "今日收藏数"
|
||
},
|
||
"userInfos": {
|
||
"type": "array",
|
||
"description": "用户列表(恒空)"
|
||
}
|
||
}
|
||
},
|
||
"voteInfo": {
|
||
"type": "object",
|
||
"description": "点赞统计",
|
||
"properties": {
|
||
"total_count": {
|
||
"type": "integer",
|
||
"description": "点赞总数"
|
||
},
|
||
"new_count": {
|
||
"type": "integer",
|
||
"description": "新增点赞数"
|
||
},
|
||
"new_nearby_count": {
|
||
"type": "integer",
|
||
"description": "附近的人新增点赞数"
|
||
},
|
||
"last_visit_time": {
|
||
"type": "integer",
|
||
"description": "最近访问时间戳"
|
||
},
|
||
"userInfos": {
|
||
"type": "array",
|
||
"description": "用户列表(恒空)"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"uid",
|
||
"time",
|
||
"favoriteInfo",
|
||
"voteInfo"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 0,
|
||
"role": "user_id"
|
||
},
|
||
{
|
||
"name": "start",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 0
|
||
},
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 10
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 0,
|
||
"x-role": "user_id"
|
||
},
|
||
"start": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 0
|
||
},
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 10
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_qun_album_list",
|
||
"aliases": [],
|
||
"returns": "NapCat 风格的相册列表封套:{album_list, attach_info, has_more}。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"album_list": {
|
||
"type": "array",
|
||
"description": "相册列表",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"album_id": {
|
||
"type": "string",
|
||
"description": "相册 id"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "相册名称"
|
||
},
|
||
"create_time": {
|
||
"type": "string",
|
||
"description": "相册创建时间(unix 秒)"
|
||
},
|
||
"last_upload_time": {
|
||
"type": "string",
|
||
"description": "最后上传时间(unix 秒)"
|
||
},
|
||
"upload_number": {
|
||
"type": "string",
|
||
"description": "相册内媒体数量"
|
||
},
|
||
"cover": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"description": "相册封面;没有封面时为 null",
|
||
"properties": {
|
||
"type": {
|
||
"type": "integer",
|
||
"description": "封面媒体类型"
|
||
},
|
||
"image": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"description": "封面图片信息",
|
||
"properties": {
|
||
"name": {
|
||
"type": "string",
|
||
"description": "图片名称"
|
||
},
|
||
"sloc": {
|
||
"type": "string",
|
||
"description": "图片短定位标识"
|
||
},
|
||
"lloc": {
|
||
"type": "string",
|
||
"description": "图片长定位标识"
|
||
},
|
||
"photoUrls": {
|
||
"type": "array",
|
||
"description": "不同规格的封面地址",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"spec": {
|
||
"type": "integer",
|
||
"description": "图片规格"
|
||
},
|
||
"url": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "封面地址"
|
||
},
|
||
"width": {
|
||
"type": "integer",
|
||
"description": "封面宽度"
|
||
},
|
||
"height": {
|
||
"type": "integer",
|
||
"description": "封面高度"
|
||
}
|
||
},
|
||
"required": [
|
||
"url",
|
||
"width",
|
||
"height"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"spec",
|
||
"url"
|
||
]
|
||
}
|
||
},
|
||
"defaultUrl": {
|
||
"type": [
|
||
"object",
|
||
"null"
|
||
],
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "封面地址"
|
||
},
|
||
"width": {
|
||
"type": "integer",
|
||
"description": "封面宽度"
|
||
},
|
||
"height": {
|
||
"type": "integer",
|
||
"description": "封面高度"
|
||
}
|
||
},
|
||
"required": [
|
||
"url",
|
||
"width",
|
||
"height"
|
||
]
|
||
},
|
||
"isGif": {
|
||
"type": "boolean",
|
||
"description": "是否为动图"
|
||
},
|
||
"hasRaw": {
|
||
"type": "boolean",
|
||
"description": "是否有原图"
|
||
}
|
||
},
|
||
"required": [
|
||
"name",
|
||
"sloc",
|
||
"lloc",
|
||
"photoUrls",
|
||
"defaultUrl",
|
||
"isGif",
|
||
"hasRaw"
|
||
]
|
||
}
|
||
},
|
||
"required": [
|
||
"type",
|
||
"image"
|
||
]
|
||
},
|
||
"creator": {
|
||
"type": "object",
|
||
"description": "相册创建者信息",
|
||
"properties": {
|
||
"uin": {
|
||
"type": "string",
|
||
"description": "创建者 QQ 号"
|
||
},
|
||
"uid": {
|
||
"type": "string",
|
||
"description": "创建者 UID"
|
||
},
|
||
"nick": {
|
||
"type": "string",
|
||
"description": "创建者原始 Unicode 昵称"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"album_id",
|
||
"name",
|
||
"create_time",
|
||
"last_upload_time",
|
||
"upload_number",
|
||
"cover"
|
||
]
|
||
}
|
||
},
|
||
"attach_info": {
|
||
"type": "string",
|
||
"description": "下一页分页游标"
|
||
},
|
||
"has_more": {
|
||
"type": "boolean",
|
||
"description": "是否还有更多"
|
||
}
|
||
},
|
||
"required": [
|
||
"album_list",
|
||
"attach_info",
|
||
"has_more"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "attach_info",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"attach_info": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "get_qzone_feeds",
|
||
"aliases": [],
|
||
"summary": "获取 QQ 空间好友动态(feed);page_num 仅首页可靠,深翻页需时间游标(暂未实现)",
|
||
"returns": "好友动态对象,含本页 feed 数组与是否有更多页。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"feeds": {
|
||
"type": "array",
|
||
"description": "本页好友动态数组",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"uin": {
|
||
"type": "integer",
|
||
"description": "动态作者 QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "作者昵称"
|
||
},
|
||
"time": {
|
||
"type": "integer",
|
||
"description": "发表时间(unix 秒)"
|
||
},
|
||
"appid": {
|
||
"type": "integer",
|
||
"description": "Qzone 应用 id(311=说说,4=相册,…)"
|
||
},
|
||
"key": {
|
||
"type": "string",
|
||
"description": "feed 句柄(Qzone 用于定位该条动态)"
|
||
},
|
||
"html": {
|
||
"type": "string",
|
||
"description": "预渲染 HTML 原样透传"
|
||
}
|
||
},
|
||
"required": [
|
||
"uin",
|
||
"nickname",
|
||
"time",
|
||
"appid",
|
||
"key",
|
||
"html"
|
||
]
|
||
}
|
||
},
|
||
"has_more": {
|
||
"type": "boolean",
|
||
"description": "服务端是否报告本页之后还有更多页"
|
||
}
|
||
},
|
||
"required": [
|
||
"feeds",
|
||
"has_more"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "page_num",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "页码(1 起;仅首页可靠)",
|
||
"default": 1
|
||
},
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 50
|
||
},
|
||
"desc": "本页数量",
|
||
"default": 10
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"page_num": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "页码(1 起;仅首页可靠)",
|
||
"default": 1
|
||
},
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 50,
|
||
"description": "本页数量",
|
||
"default": 10
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "get_qzone_msg_list",
|
||
"aliases": [],
|
||
"summary": "获取 QQ 空间说说列表(默认机器人自己的空间)",
|
||
"returns": "说说列表对象,含说说总数与本页说说数组。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"total": {
|
||
"type": "integer",
|
||
"description": "账号说说总数(非本页数量)"
|
||
},
|
||
"msglist": {
|
||
"type": "array",
|
||
"description": "本页说说数组",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tid": {
|
||
"type": "string",
|
||
"description": "说说 id(delete/comment/like 的句柄)"
|
||
},
|
||
"content": {
|
||
"type": "string",
|
||
"description": "说说正文"
|
||
},
|
||
"time": {
|
||
"type": "integer",
|
||
"description": "发表时间(unix 秒)"
|
||
},
|
||
"comment_num": {
|
||
"type": "integer",
|
||
"description": "评论数"
|
||
},
|
||
"is_private": {
|
||
"type": "boolean",
|
||
"description": "是否仅自己可见"
|
||
},
|
||
"images": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"description": "图片 URL 列表(每图取最大可用变体)"
|
||
}
|
||
},
|
||
"required": [
|
||
"tid",
|
||
"content",
|
||
"time",
|
||
"comment_num",
|
||
"is_private",
|
||
"images"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"total",
|
||
"msglist"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "target_uin",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "目标 QQ 号,省略则取机器人自己"
|
||
},
|
||
{
|
||
"name": "pos",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"desc": "起始偏移",
|
||
"default": 0
|
||
},
|
||
{
|
||
"name": "num",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 100
|
||
},
|
||
"desc": "本页数量",
|
||
"default": 20
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"target_uin": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "目标 QQ 号,省略则取机器人自己",
|
||
"x-role": "user_id"
|
||
},
|
||
"pos": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "起始偏移",
|
||
"default": 0
|
||
},
|
||
"num": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"maximum": 100,
|
||
"description": "本页数量",
|
||
"default": 20
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "get_recent_contact",
|
||
"aliases": [],
|
||
"summary": "获取最近会话(占位)",
|
||
"returns": "占位实现,恒返回空数组。",
|
||
"returnsSchema": {
|
||
"type": "array",
|
||
"description": "最近会话列表(占位,恒空)"
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "count",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 10
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"count": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 10
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_record",
|
||
"aliases": [],
|
||
"summary": "获取语音信息;传 out_format 则服务端转码并附带 base64",
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "record"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "",
|
||
"role": "file_id"
|
||
},
|
||
{
|
||
"name": "out_format",
|
||
"type": "enum",
|
||
"required": false,
|
||
"values": [
|
||
"mp3",
|
||
"amr",
|
||
"wma",
|
||
"m4a",
|
||
"spx",
|
||
"ogg",
|
||
"wav",
|
||
"flac"
|
||
],
|
||
"schema": {
|
||
"enum": [
|
||
"mp3",
|
||
"amr",
|
||
"wma",
|
||
"m4a",
|
||
"spx",
|
||
"ogg",
|
||
"wav",
|
||
"flac"
|
||
]
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"default": "",
|
||
"x-role": "record"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"default": "",
|
||
"x-role": "file_id"
|
||
},
|
||
"out_format": {
|
||
"enum": [
|
||
"mp3",
|
||
"amr",
|
||
"wma",
|
||
"m4a",
|
||
"spx",
|
||
"ogg",
|
||
"wav",
|
||
"flac"
|
||
]
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_rkey",
|
||
"aliases": [
|
||
"nc_get_rkey"
|
||
],
|
||
"summary": "获取下载 rkey",
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_rkey_server",
|
||
"aliases": [],
|
||
"summary": "获取 rkey 服务器信息",
|
||
"returns": "{ expired_time, name, private_rkey?, group_rkey? }:rkey 过期时间与(存在时的)私聊/群聊 rkey。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"expired_time": {
|
||
"type": "integer",
|
||
"description": "过期时间戳(秒)"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "服务器名(恒 SnowLuma)"
|
||
},
|
||
"private_rkey": {
|
||
"type": "string",
|
||
"description": "私聊 rkey(存在时返回)"
|
||
},
|
||
"group_rkey": {
|
||
"type": "string",
|
||
"description": "群聊 rkey(存在时返回)"
|
||
}
|
||
},
|
||
"required": [
|
||
"expired_time",
|
||
"name"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_share_link",
|
||
"aliases": [],
|
||
"summary": "获取文件分享链接",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_status",
|
||
"aliases": [],
|
||
"returns": "运行状态。`online` 表示账号在线;`good` 仅在接收链路确认停滞时为 `false`。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"online": {
|
||
"type": "boolean",
|
||
"description": "是否在线"
|
||
},
|
||
"good": {
|
||
"type": "boolean",
|
||
"description": "接收链路健康状态;仅在确认停滞时为 false"
|
||
}
|
||
},
|
||
"required": [
|
||
"online",
|
||
"good"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "信息"
|
||
},
|
||
{
|
||
"name": "get_stranger_info",
|
||
"aliases": [],
|
||
"summary": "获取陌生人信息",
|
||
"returns": "陌生人资料:QQ 号、昵称、性别、年龄与个性签名,命中资料时另含等级。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"description": "QQ 号"
|
||
},
|
||
"nickname": {
|
||
"type": "string",
|
||
"description": "昵称"
|
||
},
|
||
"sex": {
|
||
"type": "string",
|
||
"description": "性别(male/female/unknown)"
|
||
},
|
||
"age": {
|
||
"type": "integer",
|
||
"description": "年龄"
|
||
},
|
||
"long_nick": {
|
||
"type": "string",
|
||
"description": "个性签名"
|
||
},
|
||
"qq_level": {
|
||
"type": "integer",
|
||
"description": "QQ 等级(仅查到资料时返回)"
|
||
},
|
||
"level": {
|
||
"type": "integer",
|
||
"description": "QQ 等级,同 qq_level(仅查到资料时返回)"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"nickname",
|
||
"sex",
|
||
"age",
|
||
"long_nick"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "user_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "好友"
|
||
},
|
||
{
|
||
"name": "get_unidirectional_friend_list",
|
||
"aliases": [],
|
||
"summary": "获取单向好友列表",
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "get_version_info",
|
||
"aliases": [],
|
||
"returns": "实现与协议版本信息。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"app_name": {
|
||
"type": "string",
|
||
"description": "实现名称(SnowLuma)"
|
||
},
|
||
"app_version": {
|
||
"type": "string",
|
||
"description": "实现版本"
|
||
},
|
||
"protocol_version": {
|
||
"type": "string",
|
||
"description": "OneBot 协议版本"
|
||
}
|
||
},
|
||
"required": [
|
||
"app_name",
|
||
"app_version",
|
||
"protocol_version"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "信息"
|
||
},
|
||
{
|
||
"name": "group_poke",
|
||
"aliases": [],
|
||
"summary": "群拍一拍",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "member_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "member_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "like_qzone",
|
||
"aliases": [],
|
||
"summary": "给一条说说点赞(QQ 空间)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "tid",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "说说 tid"
|
||
},
|
||
{
|
||
"name": "target_uin",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "说说所属 QQ 号,省略则为机器人自己"
|
||
},
|
||
{
|
||
"name": "abstime",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"desc": "说说发表时间(unix 秒),传真实值更可靠",
|
||
"default": 0,
|
||
"role": "timestamp"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tid": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "说说 tid"
|
||
},
|
||
"target_uin": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "说说所属 QQ 号,省略则为机器人自己",
|
||
"x-role": "user_id"
|
||
},
|
||
"abstime": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "说说发表时间(unix 秒),传真实值更可靠",
|
||
"default": 0,
|
||
"x-role": "timestamp"
|
||
}
|
||
},
|
||
"required": [
|
||
"tid"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "list_filesets",
|
||
"aliases": [],
|
||
"summary": "列出当前账号的所有闪传文件集",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "mark_group_msg_as_read",
|
||
"aliases": [],
|
||
"summary": "标记群消息已读",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "mark_msg_as_read",
|
||
"aliases": [],
|
||
"summary": "标记消息已读(群聊/私聊自动路由)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "target_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"target_id": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "mark_private_msg_as_read",
|
||
"aliases": [],
|
||
"summary": "标记私聊消息已读",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "modify_custom_face",
|
||
"aliases": [],
|
||
"summary": "修改收藏表情备注",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "emoji_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "desc",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"emoji_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"emoji_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "move_custom_face_to_front",
|
||
"aliases": [],
|
||
"summary": "收藏表情移到最前",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "emoji_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"emoji_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"emoji_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "move_group_file",
|
||
"aliases": [],
|
||
"summary": "移动群文件",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file_id",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "parent_directory",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "target_directory",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file_id"
|
||
},
|
||
"parent_directory": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"target_directory": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"file_id",
|
||
"parent_directory",
|
||
"target_directory"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "nc_get_packet_status",
|
||
"aliases": [],
|
||
"summary": "获取 packet 状态(占位)",
|
||
"returns": "占位实现,恒返回 null。",
|
||
"returnsSchema": {
|
||
"type": "null",
|
||
"description": "packet 状态(占位,恒 null)"
|
||
},
|
||
"readOnly": true,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "nc_get_user_status",
|
||
"aliases": [],
|
||
"summary": "获取用户在线/扩展状态",
|
||
"returns": "{ status, ext_status }:用户在线状态码与扩展状态码。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"status": {
|
||
"type": "integer",
|
||
"description": "在线状态码"
|
||
},
|
||
"ext_status": {
|
||
"type": "integer",
|
||
"description": "扩展状态码"
|
||
}
|
||
},
|
||
"required": [
|
||
"status",
|
||
"ext_status"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "ocr_image",
|
||
"aliases": [
|
||
".ocr_image"
|
||
],
|
||
"summary": "OCR 图片(服务端,需图片 URL 或已缓存的图片 file_id)",
|
||
"returns": "{ texts, language }:识别文本数组(含置信度与坐标)与识别语言。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"texts": {
|
||
"type": "array",
|
||
"description": "识别出的文本块",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"text": {
|
||
"type": "string",
|
||
"description": "文本内容"
|
||
},
|
||
"confidence": {
|
||
"type": "number",
|
||
"description": "置信度"
|
||
},
|
||
"coordinates": {
|
||
"type": "array",
|
||
"description": "文本框顶点坐标",
|
||
"items": {
|
||
"type": "object",
|
||
"properties": {
|
||
"x": {
|
||
"type": "number",
|
||
"description": "X 坐标"
|
||
},
|
||
"y": {
|
||
"type": "number",
|
||
"description": "Y 坐标"
|
||
}
|
||
},
|
||
"required": [
|
||
"x",
|
||
"y"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"text",
|
||
"confidence",
|
||
"coordinates"
|
||
]
|
||
}
|
||
},
|
||
"language": {
|
||
"type": "string",
|
||
"description": "识别语言"
|
||
}
|
||
},
|
||
"required": [
|
||
"texts",
|
||
"language"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "image",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "image",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"image": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "image"
|
||
}
|
||
},
|
||
"required": [
|
||
"image"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "rename_flash_file",
|
||
"aliases": [],
|
||
"summary": "重命名闪传文件",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "new_name",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"new_name": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id",
|
||
"new_name"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "rename_group_file",
|
||
"aliases": [],
|
||
"summary": "重命名群文件",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file_id",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "current_parent_directory",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": "/"
|
||
},
|
||
{
|
||
"name": "new_name",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file_id"
|
||
},
|
||
"current_parent_directory": {
|
||
"type": "string",
|
||
"default": "/"
|
||
},
|
||
"new_name": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"file_id",
|
||
"new_name"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "rename_group_file_folder",
|
||
"aliases": [],
|
||
"summary": "重命名群文件夹",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "folder_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "new_folder_name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"folder_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"new_folder_name": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"folder_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "request_decrypt_key",
|
||
"aliases": [],
|
||
"summary": "请求数据库解密密钥",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "db_path",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"db_path": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"db_path"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_ark_share",
|
||
"aliases": [],
|
||
"summary": "分享用户/群 Ark 卡片(NapCat 标准名)",
|
||
"returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"arkMsg": {
|
||
"type": "string",
|
||
"description": "Ark 卡片 JSON 字符串"
|
||
}
|
||
},
|
||
"required": [
|
||
"arkMsg"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "phone_number",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
},
|
||
"phone_number": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_flash_msg",
|
||
"aliases": [],
|
||
"summary": "发送闪传消息(私聊或群聊,引用 fileset_id 让对端下载)",
|
||
"returns": "{ message_id }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "fileset_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"fileset_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"fileset_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_forward_msg",
|
||
"aliases": [],
|
||
"summary": "发送合并转发(按 message_type/群号自动路由)",
|
||
"returns": "{ message_id, res_id, forward_id }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "messages",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"messages": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_group_ai_record",
|
||
"aliases": [],
|
||
"summary": "发送 AI 语音到群",
|
||
"returns": "{ message_id }:已发送 AI 语音的 OneBot 消息 ID。",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "character",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "text",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "chat_type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 1
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"character": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"text": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"chat_type": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"character",
|
||
"text"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_group_ark_share",
|
||
"aliases": [],
|
||
"summary": "分享群 Ark 卡片(NapCat 标准名)",
|
||
"returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。",
|
||
"returnsSchema": {
|
||
"type": "string",
|
||
"description": "群 Ark 卡片 JSON 字符串"
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_group_forward_msg",
|
||
"aliases": [],
|
||
"summary": "发送群合并转发",
|
||
"returns": "{ message_id, res_id, forward_id }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "messages",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"messages": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_group_msg",
|
||
"aliases": [],
|
||
"summary": "发送群消息",
|
||
"returns": "{ message_id: number }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": true,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "auto_escape",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"auto_escape": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"message"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "消息"
|
||
},
|
||
{
|
||
"name": "send_like",
|
||
"aliases": [],
|
||
"summary": "点赞",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "times",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 1
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"times": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 1
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_msg",
|
||
"aliases": [],
|
||
"summary": "发送消息(按 message_type/群号 自动路由群聊或私聊)",
|
||
"returns": "{ message_id: number }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": true,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "message_type",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "auto_escape",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"message_type": {
|
||
"type": "string"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"auto_escape": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"message"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "消息"
|
||
},
|
||
{
|
||
"name": "send_packet",
|
||
"aliases": [
|
||
".send_packet"
|
||
],
|
||
"summary": "发送原始 SSO 包(cmd + hex data)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "cmd",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "data",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "rsp",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"cmd": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"data": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"rsp": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"cmd"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_poke",
|
||
"aliases": [],
|
||
"summary": "拍一拍(群聊/私聊自动路由)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_private_forward_msg",
|
||
"aliases": [],
|
||
"summary": "发送私聊合并转发",
|
||
"returns": "{ message_id, res_id, forward_id }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "messages",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"messages": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "send_private_msg",
|
||
"aliases": [],
|
||
"summary": "发送私聊消息",
|
||
"returns": "{ message_id: number }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": true,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
},
|
||
{
|
||
"name": "auto_escape",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"auto_escape": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"message"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "消息"
|
||
},
|
||
{
|
||
"name": "send_qzone_msg",
|
||
"aliases": [],
|
||
"summary": "发表说说(QQ 空间,支持纯文字或带图;传 images 自动上传;可设置查看权限)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "content",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "说说正文"
|
||
},
|
||
{
|
||
"name": "images",
|
||
"type": "string[]",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
"desc": "图片数组(可选),支持 file:// http:// base64://;自动上传"
|
||
},
|
||
{
|
||
"name": "ugc_right",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见",
|
||
"default": 1
|
||
},
|
||
{
|
||
"name": "target_uins",
|
||
"type": "uint[]",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
"desc": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单"
|
||
}
|
||
],
|
||
"invariants": [
|
||
"ugc_right must be one of 1, 4, 16, 64, 128",
|
||
"target_uins is required when ugc_right is 16 or 128"
|
||
],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"content": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "说说正文"
|
||
},
|
||
"images": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"description": "图片数组(可选),支持 file:// http:// base64://;自动上传"
|
||
},
|
||
"ugc_right": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见",
|
||
"default": 1
|
||
},
|
||
"target_uins": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"description": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单"
|
||
}
|
||
},
|
||
"required": [
|
||
"content"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "set_diy_online_status",
|
||
"aliases": [],
|
||
"summary": "设置自定义在线状态",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "face_id",
|
||
"type": "int",
|
||
"required": true,
|
||
"role": "face_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
},
|
||
{
|
||
"name": "face_type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 1
|
||
},
|
||
{
|
||
"name": "wording",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"face_id": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"x-role": "face_id"
|
||
},
|
||
"face_type": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 1
|
||
},
|
||
"wording": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"face_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_doubt_friends_add_request",
|
||
"aliases": [],
|
||
"summary": "处理可疑好友申请",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "flag",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "approve",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"flag": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"approve": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"flag"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_essence_msg",
|
||
"aliases": [],
|
||
"summary": "设置精华消息",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_friend_add_request",
|
||
"aliases": [],
|
||
"summary": "处理好友添加请求",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "flag",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "approve",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"flag": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"approve": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"flag"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "请求"
|
||
},
|
||
{
|
||
"name": "set_friend_remark",
|
||
"aliases": [],
|
||
"summary": "设置好友备注",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "remark",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"remark": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"remark"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_group_add_option",
|
||
"aliases": [],
|
||
"summary": "设置加群选项",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "add_type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 0
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"add_type": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 0
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_add_request",
|
||
"aliases": [],
|
||
"summary": "处理加群请求",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "flag",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "sub_type",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
},
|
||
{
|
||
"name": "type",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
},
|
||
{
|
||
"name": "approve",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
},
|
||
{
|
||
"name": "reason",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"flag": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"sub_type": {},
|
||
"type": {},
|
||
"approve": {
|
||
"type": "boolean",
|
||
"default": true
|
||
},
|
||
"reason": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"flag"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "请求"
|
||
},
|
||
{
|
||
"name": "set_group_admin",
|
||
"aliases": [],
|
||
"summary": "设置/取消管理员",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "member_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
},
|
||
{
|
||
"name": "enable",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "member_id"
|
||
},
|
||
"enable": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_album_media_like",
|
||
"aliases": [],
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "album_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "batch_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "lloc",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"album_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"batch_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"lloc": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"album_id",
|
||
"batch_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "set_group_anonymous",
|
||
"aliases": [],
|
||
"summary": "匿名开关(未实现,返回 ok)",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_anonymous_ban",
|
||
"aliases": [],
|
||
"summary": "匿名禁言(未实现,返回 ok)",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_ban",
|
||
"aliases": [],
|
||
"summary": "禁言群成员(duration=0 解除)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "member_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
},
|
||
{
|
||
"name": "duration",
|
||
"type": "int",
|
||
"required": false,
|
||
"role": "duration",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 1800
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "member_id"
|
||
},
|
||
"duration": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 1800,
|
||
"x-role": "duration"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_card",
|
||
"aliases": [],
|
||
"summary": "设置群名片(空字符串清除)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "member_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
},
|
||
{
|
||
"name": "card",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "member_id"
|
||
},
|
||
"card": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_kick",
|
||
"aliases": [],
|
||
"summary": "踢出群成员",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "member_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
},
|
||
{
|
||
"name": "reject_add_request",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "member_id"
|
||
},
|
||
"reject_add_request": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_kick_members",
|
||
"aliases": [],
|
||
"summary": "批量踢出群成员",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint[]",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "member_id"
|
||
},
|
||
"minItems": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "reject_add_request",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "member_id"
|
||
},
|
||
"minItems": 1
|
||
},
|
||
"reject_add_request": {
|
||
"type": "boolean",
|
||
"default": false
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_leave",
|
||
"aliases": [],
|
||
"summary": "退群",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_name",
|
||
"aliases": [],
|
||
"summary": "设置群名",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "group_name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"group_name": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_portrait",
|
||
"aliases": [],
|
||
"summary": "设置群头像",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "image",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"file": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "image"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"file"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_reaction",
|
||
"aliases": [],
|
||
"summary": "群聊表情回应",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "code",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "is_set",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
},
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"code": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"is_set": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id",
|
||
"code"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_group_remark",
|
||
"aliases": [],
|
||
"summary": "设置群备注",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "remark",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
},
|
||
"remark": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"remark"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_group_robot_add_option",
|
||
"aliases": [],
|
||
"summary": "设置群机器人加群选项",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "robot_member_switch",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
},
|
||
{
|
||
"name": "robot_member_examine",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"robot_member_switch": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"robot_member_examine": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_group_search",
|
||
"aliases": [],
|
||
"summary": "设置群被搜索方式(群指纹 / 群号搜索开关)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "no_finger_open",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
},
|
||
{
|
||
"name": "no_code_finger_open",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"no_finger_open": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"no_code_finger_open": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_sign",
|
||
"aliases": [
|
||
"send_group_sign"
|
||
],
|
||
"summary": "群签到",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_group_special_title",
|
||
"aliases": [],
|
||
"summary": "设置群头衔",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "member_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "QQ 号"
|
||
},
|
||
{
|
||
"name": "special_title",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "QQ 号",
|
||
"x-role": "member_id"
|
||
},
|
||
"special_title": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_group_todo",
|
||
"aliases": [],
|
||
"summary": "设置群待办",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"message_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_group_whole_ban",
|
||
"aliases": [],
|
||
"summary": "全员禁言开关",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "enable",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"enable": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群管理"
|
||
},
|
||
{
|
||
"name": "set_input_status",
|
||
"aliases": [],
|
||
"summary": "设置输入状态",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "event_type",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
},
|
||
"default": 0
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"event_type": {
|
||
"type": "integer",
|
||
"default": 0
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_msg_emoji_like",
|
||
"aliases": [],
|
||
"summary": "设置消息表情回应",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "message_id",
|
||
"type": "messageId",
|
||
"required": true,
|
||
"role": "message_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "emoji_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "set",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"message_id": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
},
|
||
"x-role": "message_id"
|
||
},
|
||
"emoji_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"set": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"message_id",
|
||
"emoji_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_online_status",
|
||
"aliases": [],
|
||
"summary": "设置在线状态",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "status",
|
||
"type": "int",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"name": "ext_status",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 0
|
||
},
|
||
{
|
||
"name": "battery_status",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 100
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"status": {
|
||
"type": "integer",
|
||
"not": {
|
||
"const": 0
|
||
}
|
||
},
|
||
"ext_status": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 0
|
||
},
|
||
"battery_status": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"default": 100
|
||
}
|
||
},
|
||
"required": [
|
||
"status"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_qq_avatar",
|
||
"aliases": [],
|
||
"summary": "设置 QQ 头像",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "image",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "image"
|
||
}
|
||
},
|
||
"required": [
|
||
"file"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_qq_profile",
|
||
"aliases": [],
|
||
"summary": "设置 QQ 资料",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "nickname",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "personal_note",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"nickname": {
|
||
"type": "string"
|
||
},
|
||
"personal_note": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_qzone_ban",
|
||
"aliases": [],
|
||
"summary": "拉黑或解除拉黑某人(修改机器人自身 QQ 空间黑名单;enable=true 拉黑,false 解除)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "目标 QQ 号"
|
||
},
|
||
{
|
||
"name": "enable",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"desc": "true 拉黑,false 解除拉黑",
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "目标 QQ 号",
|
||
"x-role": "user_id"
|
||
},
|
||
"enable": {
|
||
"type": "boolean",
|
||
"description": "true 拉黑,false 解除拉黑",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "set_qzone_msg_right",
|
||
"aliases": [],
|
||
"summary": "修改一条已发说说的查看权限(QQ 空间,按 tid)",
|
||
"returns": "更新后的权限对象。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"ugc_right": {
|
||
"type": "integer",
|
||
"description": "更新后的查看权限"
|
||
}
|
||
},
|
||
"required": [
|
||
"ugc_right"
|
||
]
|
||
},
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "tid",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)"
|
||
},
|
||
{
|
||
"name": "ugc_right",
|
||
"type": "int",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见"
|
||
},
|
||
{
|
||
"name": "target_uins",
|
||
"type": "uint[]",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
"desc": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单"
|
||
}
|
||
],
|
||
"invariants": [
|
||
"ugc_right must be one of 1, 4, 16, 64, 128",
|
||
"target_uins is required when ugc_right is 16 or 128"
|
||
],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tid": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)"
|
||
},
|
||
"ugc_right": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见"
|
||
},
|
||
"target_uins": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"description": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单"
|
||
}
|
||
},
|
||
"required": [
|
||
"tid",
|
||
"ugc_right"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "set_restart",
|
||
"aliases": [],
|
||
"summary": "重启(不支持)",
|
||
"readOnly": false,
|
||
"params": [],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "set_self_longnick",
|
||
"aliases": [],
|
||
"summary": "设置个性签名(longNick/long_nick,严格 string)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "longNick",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
},
|
||
{
|
||
"name": "long_nick",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"longNick": {},
|
||
"long_nick": {}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "share_group_ex",
|
||
"aliases": [],
|
||
"summary": "分享群 Ark 卡片",
|
||
"returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。",
|
||
"returnsSchema": {
|
||
"type": "string",
|
||
"description": "群 Ark 卡片 JSON 字符串"
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "share_peer",
|
||
"aliases": [],
|
||
"summary": "分享用户/群 Ark 卡片",
|
||
"returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"arkMsg": {
|
||
"type": "string",
|
||
"description": "Ark 卡片 JSON 字符串"
|
||
}
|
||
},
|
||
"required": [
|
||
"arkMsg"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "phone_number",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
},
|
||
"phone_number": {
|
||
"type": "string",
|
||
"default": ""
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "test_download_stream",
|
||
"aliases": [],
|
||
"summary": "测试下载流(推送 10 个数据帧,验证流式传输,不触达 QQ)",
|
||
"returns": "流式帧:data_chunk*10 → data_complete(error=true 时以 error 帧结束)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "error",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": false,
|
||
"desc": "是否触发测试错误"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"error": {
|
||
"type": "boolean",
|
||
"description": "是否触发测试错误",
|
||
"default": false
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"stream": true,
|
||
"category": "流式接口"
|
||
},
|
||
{
|
||
"name": "trans_group_file",
|
||
"aliases": [],
|
||
"summary": "转存群文件",
|
||
"returns": "{ ok: true }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "file_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file_id",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
},
|
||
"file_id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file_id"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"file_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "translate_en2zh",
|
||
"aliases": [],
|
||
"summary": "英译中",
|
||
"returns": "{ words }:与输入等长的中文译文字符串数组。",
|
||
"returnsSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"words": {
|
||
"type": "array",
|
||
"description": "译文数组",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"required": [
|
||
"words"
|
||
]
|
||
},
|
||
"readOnly": true,
|
||
"params": [
|
||
{
|
||
"name": "words",
|
||
"type": "raw",
|
||
"required": false,
|
||
"schema": {}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"words": {}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "unlike_qzone",
|
||
"aliases": [],
|
||
"summary": "取消对一条说说的点赞(QQ 空间;取消赞端点待真机核实)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "tid",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "说说 tid"
|
||
},
|
||
{
|
||
"name": "target_uin",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "说说所属 QQ 号,省略则为机器人自己"
|
||
},
|
||
{
|
||
"name": "abstime",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"desc": "说说发表时间(unix 秒),传真实值更可靠",
|
||
"default": 0,
|
||
"role": "timestamp"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tid": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "说说 tid"
|
||
},
|
||
"target_uin": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "说说所属 QQ 号,省略则为机器人自己",
|
||
"x-role": "user_id"
|
||
},
|
||
"abstime": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "说说发表时间(unix 秒),传真实值更可靠",
|
||
"default": 0,
|
||
"x-role": "timestamp"
|
||
}
|
||
},
|
||
"required": [
|
||
"tid"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "空间"
|
||
},
|
||
{
|
||
"name": "upload_file_stream",
|
||
"aliases": [],
|
||
"summary": "以流式分块方式上传文件到机器人本地(返回可用于发送的本地路径)",
|
||
"returns": "流式帧:分块确认 type=stream、完成 type=response(含 file_path/file_size/sha256)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "stream_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"desc": "流 ID(客户端生成的 UUID,限 [A-Za-z0-9_-])"
|
||
},
|
||
{
|
||
"name": "chunk_data",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "分块数据(Base64)"
|
||
},
|
||
{
|
||
"name": "chunk_index",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"desc": "分块索引(从 0 开始)"
|
||
},
|
||
{
|
||
"name": "total_chunks",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "总分块数(新流必填)"
|
||
},
|
||
{
|
||
"name": "file_size",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"desc": "文件总大小(字节)"
|
||
},
|
||
{
|
||
"name": "expected_sha256",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "期望的整文件 SHA256(校验)"
|
||
},
|
||
{
|
||
"name": "is_complete",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"desc": "是否为最后一个分块/触发合并"
|
||
},
|
||
{
|
||
"name": "filename",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"desc": "文件名"
|
||
},
|
||
{
|
||
"name": "reset",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"desc": "重置并丢弃该流"
|
||
},
|
||
{
|
||
"name": "verify_only",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"desc": "仅查询当前流状态"
|
||
},
|
||
{
|
||
"name": "file_retention",
|
||
"type": "int",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 0
|
||
},
|
||
"default": 300000,
|
||
"desc": "合并文件保留毫秒(0=不回收)"
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"stream_id": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "流 ID(客户端生成的 UUID,限 [A-Za-z0-9_-])"
|
||
},
|
||
"chunk_data": {
|
||
"type": "string",
|
||
"description": "分块数据(Base64)"
|
||
},
|
||
"chunk_index": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "分块索引(从 0 开始)"
|
||
},
|
||
"total_chunks": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "总分块数(新流必填)"
|
||
},
|
||
"file_size": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "文件总大小(字节)"
|
||
},
|
||
"expected_sha256": {
|
||
"type": "string",
|
||
"description": "期望的整文件 SHA256(校验)"
|
||
},
|
||
"is_complete": {
|
||
"type": "boolean",
|
||
"description": "是否为最后一个分块/触发合并"
|
||
},
|
||
"filename": {
|
||
"type": "string",
|
||
"description": "文件名"
|
||
},
|
||
"reset": {
|
||
"type": "boolean",
|
||
"description": "重置并丢弃该流"
|
||
},
|
||
"verify_only": {
|
||
"type": "boolean",
|
||
"description": "仅查询当前流状态"
|
||
},
|
||
"file_retention": {
|
||
"type": "integer",
|
||
"minimum": 0,
|
||
"description": "合并文件保留毫秒(0=不回收)",
|
||
"default": 300000
|
||
}
|
||
},
|
||
"required": [
|
||
"stream_id"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"stream": true,
|
||
"category": "流式接口"
|
||
},
|
||
{
|
||
"name": "upload_forward_msg",
|
||
"aliases": [],
|
||
"summary": "上传转发消息",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "messages",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"messages": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "upload_foward_msg",
|
||
"aliases": [],
|
||
"summary": "上传转发消息(别名拼写)",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "messages",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "message",
|
||
"type": "message",
|
||
"required": false,
|
||
"schema": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
}
|
||
},
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": false,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"messages": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"message": {
|
||
"description": "OneBot message: string | segment[] | object"
|
||
},
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "group_id"
|
||
}
|
||
},
|
||
"additionalProperties": true
|
||
},
|
||
"category": "扩展"
|
||
},
|
||
{
|
||
"name": "upload_group_file",
|
||
"aliases": [],
|
||
"summary": "上传群文件",
|
||
"returns": "{ file_id: string }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "folder",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "folder_id",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "upload_file",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"file": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"folder": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"folder_id": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"upload_file": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"file"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
},
|
||
{
|
||
"name": "upload_image_to_qun_album",
|
||
"aliases": [],
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "group_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "group_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
},
|
||
"desc": "群号"
|
||
},
|
||
{
|
||
"name": "album_id",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "album_name",
|
||
"type": "string",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "image",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"group_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"description": "群号",
|
||
"x-role": "group_id"
|
||
},
|
||
"album_id": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"album_name": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
},
|
||
"file": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "image"
|
||
}
|
||
},
|
||
"required": [
|
||
"group_id",
|
||
"album_id",
|
||
"album_name",
|
||
"file"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群相册"
|
||
},
|
||
{
|
||
"name": "upload_private_file",
|
||
"aliases": [],
|
||
"summary": "上传私聊文件",
|
||
"returns": "{ file_id: string }",
|
||
"readOnly": false,
|
||
"params": [
|
||
{
|
||
"name": "user_id",
|
||
"type": "uint",
|
||
"required": true,
|
||
"role": "user_id",
|
||
"schema": {
|
||
"type": "integer",
|
||
"minimum": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "file",
|
||
"type": "string",
|
||
"required": true,
|
||
"role": "file",
|
||
"schema": {
|
||
"type": "string",
|
||
"minLength": 1
|
||
}
|
||
},
|
||
{
|
||
"name": "name",
|
||
"type": "string",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
},
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "upload_file",
|
||
"type": "bool",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
},
|
||
"default": true
|
||
}
|
||
],
|
||
"invariants": [],
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"user_id": {
|
||
"type": "integer",
|
||
"minimum": 1,
|
||
"x-role": "user_id"
|
||
},
|
||
"file": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"x-role": "file"
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"default": ""
|
||
},
|
||
"upload_file": {
|
||
"type": "boolean",
|
||
"default": true
|
||
}
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"file"
|
||
],
|
||
"additionalProperties": true
|
||
},
|
||
"category": "群文件"
|
||
}
|
||
];
|
||
|
||
export const CATEGORIES: CatalogCategory[] = [
|
||
{
|
||
"category": "信息",
|
||
"count": 5
|
||
},
|
||
{
|
||
"category": "消息",
|
||
"count": 5
|
||
},
|
||
{
|
||
"category": "好友",
|
||
"count": 3
|
||
},
|
||
{
|
||
"category": "群信息",
|
||
"count": 6
|
||
},
|
||
{
|
||
"category": "群管理",
|
||
"count": 14
|
||
},
|
||
{
|
||
"category": "群文件",
|
||
"count": 12
|
||
},
|
||
{
|
||
"category": "请求",
|
||
"count": 2
|
||
},
|
||
{
|
||
"category": "扩展",
|
||
"count": 109
|
||
},
|
||
{
|
||
"category": "群相册",
|
||
"count": 8
|
||
},
|
||
{
|
||
"category": "空间",
|
||
"count": 9
|
||
},
|
||
{
|
||
"category": "流式接口",
|
||
"count": 6
|
||
}
|
||
];
|