Skip to content

zentao-api / ZentaoProfileRecord

Interface: ZentaoProfileRecord ​

运行时返回的 profile,会额外带上 account@server 形式的 key。

Extends ​

Indexable ​

[key: string]: unknown

允许上层应用保存 JSON 格式的额外字段,不保留 Date、Map 等类型信息,不支持 BigInt 或循环对象。

Properties ​

PropertyTypeDescriptionInherited from
accountstring用户账号。ZentaoProfile.account
config?ZentaoProfileConfig客户端自定义配置。ZentaoProfile.config
keystring--
lastUsedTime?string最后使用时间。ZentaoProfile.lastUsedTime
loginTime?string登录时间。ZentaoProfile.loginTime
serverstring禅道站点根地址,不包含 /api.php/v2。ZentaoProfile.server
serverConfig?ServerConfig禅道服务端配置。ZentaoProfile.serverConfig
serverConfigFetchedAt?string成功从 ?mode=getconfig 获取配置的本地 ISO 时间;缺失时缓存需要刷新。ZentaoProfile.serverConfigFetchedAt
tokenstring禅道 API Token。ZentaoProfile.token
user?Record<string, unknown>登录验证通过后得到的用户信息。ZentaoProfile.user

Released under the MIT License.