test: validate capability property schemas and options
This commit is contained in:
1 parent
541908961b
commit
f8859fed77
4 files changed
+12569
-800
No files matched your search
@@ -6,13 +6,34 @@
|
||||
"defaultValue": "number",
|
||||
"description": "选择要判断的目标类型。历史默认值 1 兼容数值类型。",
|
||||
"options": [
|
||||
{ "label": "数值", "value": "number" },
|
||||
{ "label": "整数", "value": "int" },
|
||||
{ "label": "空值", "value": "null" },
|
||||
{ "label": "字典", "value": "dict" },
|
||||
{ "label": "数组", "value": "list" },
|
||||
{ "label": "文本", "value": "string" },
|
||||
{ "label": "布尔", "value": "bool" }
|
||||
{
|
||||
"label": "数值",
|
||||
"value": "number"
|
||||
},
|
||||
{
|
||||
"label": "整数",
|
||||
"value": "int"
|
||||
},
|
||||
{
|
||||
"label": "空值",
|
||||
"value": "null"
|
||||
},
|
||||
{
|
||||
"label": "字典",
|
||||
"value": "dict"
|
||||
},
|
||||
{
|
||||
"label": "数组",
|
||||
"value": "list"
|
||||
},
|
||||
{
|
||||
"label": "文本",
|
||||
"value": "string"
|
||||
},
|
||||
{
|
||||
"label": "布尔",
|
||||
"value": "bool"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -24,10 +45,22 @@
|
||||
"defaultValue": "number",
|
||||
"description": "选择目标类型。历史默认值 1 兼容数值;其他数字别名 2=整数、3=布尔、4=文本。",
|
||||
"options": [
|
||||
{ "label": "数值", "value": "number" },
|
||||
{ "label": "整数", "value": "int" },
|
||||
{ "label": "布尔", "value": "bool" },
|
||||
{ "label": "文本", "value": "string" }
|
||||
{
|
||||
"label": "数值",
|
||||
"value": "number"
|
||||
},
|
||||
{
|
||||
"label": "整数",
|
||||
"value": "int"
|
||||
},
|
||||
{
|
||||
"label": "布尔",
|
||||
"value": "bool"
|
||||
},
|
||||
{
|
||||
"label": "文本",
|
||||
"value": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -36,8 +69,14 @@
|
||||
"fields": {
|
||||
"close_type": {
|
||||
"options": [
|
||||
{ "label": "按进程 PID", "value": "id" },
|
||||
{ "label": "按进程名称", "value": "name" }
|
||||
{
|
||||
"label": "按进程 PID",
|
||||
"value": "id"
|
||||
},
|
||||
{
|
||||
"label": "按进程名称",
|
||||
"value": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -47,9 +86,18 @@
|
||||
"command_type": {
|
||||
"label": "命令类型",
|
||||
"options": [
|
||||
{ "label": "DOS 命令", "value": "1" },
|
||||
{ "label": "BAT 文件", "value": "2" },
|
||||
{ "label": "PowerShell 命令", "value": "3" }
|
||||
{
|
||||
"label": "DOS 命令",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"label": "BAT 文件",
|
||||
"value": "2"
|
||||
},
|
||||
{
|
||||
"label": "PowerShell 命令",
|
||||
"value": "3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -57,12 +105,70 @@
|
||||
"System_ScreenSaverShowV1": {
|
||||
"description": "开启 Windows 已配置的系统屏保。当前组件不支持自定义屏保文字、透明度或解锁密码;登录保护遵循 Windows 系统设置。",
|
||||
"messageTemplate": "开启 Windows 系统屏保",
|
||||
"removeFields": ["text", "effect", "status", "set_password", "password"]
|
||||
"removeFields": [
|
||||
"text",
|
||||
"effect",
|
||||
"status",
|
||||
"set_password",
|
||||
"password"
|
||||
]
|
||||
},
|
||||
"ScreenControl_ScreenUnlock": {
|
||||
"name": "唤醒屏幕(非登录解锁)",
|
||||
"description": "仅尝试唤醒屏幕,不支持通过账号密码自动完成 Windows 登录解锁。锁屏后仍需本人手动登录。",
|
||||
"messageTemplate": "尝试唤醒屏幕;Windows 登录锁屏需人工解锁",
|
||||
"removeFields": ["username", "pwd"]
|
||||
"removeFields": [
|
||||
"username",
|
||||
"pwd"
|
||||
]
|
||||
},
|
||||
"Mail_DoGetMailMessage_v2": {
|
||||
"fields": {
|
||||
"attachment": {
|
||||
"defaultValue": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mail_DoMoveMail_v1": {
|
||||
"fields": {
|
||||
"email_folder": {
|
||||
"defaultValue": "INBOX",
|
||||
"options": [
|
||||
{
|
||||
"label": "收件箱",
|
||||
"value": "INBOX"
|
||||
},
|
||||
{
|
||||
"label": "已发送",
|
||||
"value": "Sent"
|
||||
},
|
||||
{
|
||||
"label": "其他文件夹",
|
||||
"value": "Other"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mail_FindMail_v2": {
|
||||
"fields": {
|
||||
"attachment": {
|
||||
"defaultValue": "2",
|
||||
"options": [
|
||||
{
|
||||
"label": "包含附件",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"label": "不包含附件",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"label": "不限",
|
||||
"value": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+12342
-782
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user