25 lines
1.2 KiB
JSON
25 lines
1.2 KiB
JSON
{
|
||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
"$id": "https://openclaw.local/account-manager/account-record.schema.json",
|
||
"title": "AccountRecord",
|
||
"description": "account-manager get / list-json / pick-* 返回的单条账号对象(核心字段;extra_json 合并键不枚举)",
|
||
"type": "object",
|
||
"required": ["id", "name", "platform", "phone", "profile_dir", "url", "login_status", "created_at", "updated_at"],
|
||
"properties": {
|
||
"id": { "type": "integer" },
|
||
"name": { "type": "string" },
|
||
"platform": { "type": "string", "description": "内部英文键,如 sohu、zhihu" },
|
||
"phone": { "type": "string", "description": "归一后的数字串,可能为空字符串" },
|
||
"profile_dir": { "type": "string", "description": "Playwright 用户数据目录绝对路径" },
|
||
"url": { "type": "string", "format": "uri" },
|
||
"login_status": { "type": "integer", "enum": [0, 1] },
|
||
"last_login_at": {
|
||
"type": ["string", "null"],
|
||
"description": "本地时区 ISO8601 字符串;未登录过为 null"
|
||
},
|
||
"created_at": { "type": ["string", "null"] },
|
||
"updated_at": { "type": ["string", "null"] }
|
||
},
|
||
"additionalProperties": true
|
||
}
|