feat(qzone): support post visibility rights when publishing qzone posts (#178)
Add ugc_right and target_uins to the qzone publish path across protocol, bridge, and the send_qzone_msg OneBot action, regenerate the MCP catalog, and cover restricted visibility (16/128) with validation tests.
This commit is contained in:
1 parent
c90a3954e4
commit
2f374ea8c9
8 files changed
+199
-16
No files matched your search
@@ -7183,7 +7183,7 @@
|
||||
{
|
||||
"name": "send_qzone_msg",
|
||||
"aliases": [],
|
||||
"summary": "发表说说(QQ 空间,支持纯文字或带图;传 images 自动上传)",
|
||||
"summary": "发表说说(QQ 空间,支持纯文字或带图;传 images 自动上传;可设置查看权限)",
|
||||
"readOnly": false,
|
||||
"params": [
|
||||
{
|
||||
@@ -7208,9 +7208,36 @@
|
||||
}
|
||||
},
|
||||
"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": [],
|
||||
"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": {
|
||||
@@ -7226,6 +7253,20 @@
|
||||
"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": [
|
||||
|
||||
@@ -7186,7 +7186,7 @@ export const ACTIONS: CatalogAction[] = [
|
||||
{
|
||||
"name": "send_qzone_msg",
|
||||
"aliases": [],
|
||||
"summary": "发表说说(QQ 空间,支持纯文字或带图;传 images 自动上传)",
|
||||
"summary": "发表说说(QQ 空间,支持纯文字或带图;传 images 自动上传;可设置查看权限)",
|
||||
"readOnly": false,
|
||||
"params": [
|
||||
{
|
||||
@@ -7211,9 +7211,36 @@ export const ACTIONS: CatalogAction[] = [
|
||||
}
|
||||
},
|
||||
"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": [],
|
||||
"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": {
|
||||
@@ -7229,6 +7256,20 @@ export const ACTIONS: CatalogAction[] = [
|
||||
"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": [
|
||||
|
||||
Reference in new issue
Block a user