For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/contracts/functions/nativeLevelFromBdsPermission.md.
  • 简体中文
  • Function: nativeLevelFromBdsPermission()

    function nativeLevelFromBdsPermission(permission: unknown): number | undefined;

    Defined in: contracts/permission-level.ts:26

    BDS permissions.json 中的权限字符串 → 原生等级数值。 使用场景:db-server 读取 BDS 根目录 permissions.json({ xuid, permission })时转换;未知值返回 undefined。

    Parameters

    ParameterType
    permissionunknown

    Returns

    number | undefined