com-angel-authorization 1.0.17 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -424,7 +424,98 @@ type RoleManagerProps = {
424
424
  };
425
425
  declare function RoleManager({ api, title, pageSize: initialPageSize, toolbarExtra, }: RoleManagerProps): react.JSX.Element;
426
426
 
427
- type SystemAdminMenuKey = 'menu' | 'resource' | 'role';
427
+ type SystemGroupOption = {
428
+ groupId: string;
429
+ name: string;
430
+ };
431
+ type SystemRoleOption = {
432
+ roleId: string;
433
+ name: string;
434
+ };
435
+ type SystemUser = {
436
+ userId: string;
437
+ username: string;
438
+ name: string;
439
+ groupIds: string[];
440
+ roleIds: string[];
441
+ /** 列表展示用,接口若返回则优先使用 */
442
+ groupNames?: string[];
443
+ roleNames?: string[];
444
+ enabled: boolean;
445
+ };
446
+ type SystemUserFormValues = {
447
+ username: string;
448
+ name: string;
449
+ /** 新增必填;编辑时可留空表示不修改 */
450
+ password: string;
451
+ groupIds: string[];
452
+ roleIds: string[];
453
+ enabled: boolean;
454
+ };
455
+ type CreateSystemUserBody = {
456
+ username: string;
457
+ name: string;
458
+ password: string;
459
+ groupIds: string[];
460
+ roleIds: string[];
461
+ enabled: boolean;
462
+ };
463
+ type UpdateSystemUserBody = {
464
+ username: string;
465
+ name: string;
466
+ password?: string;
467
+ groupIds: string[];
468
+ roleIds: string[];
469
+ enabled: boolean;
470
+ };
471
+ type FetchSystemUsersParams = {
472
+ keyword?: string;
473
+ /** undefined 表示不过滤 */
474
+ enabled?: boolean;
475
+ pagination?: ListPaginationParams;
476
+ };
477
+ type SystemUserListResult = {
478
+ records: SystemUser[];
479
+ pageToken: string;
480
+ hasPreviousPage: boolean;
481
+ hasNextPage: boolean;
482
+ };
483
+ type FetchSystemGroupsParams = {
484
+ keyword?: string;
485
+ };
486
+ type FetchSystemRoleOptionsParams = {
487
+ keyword?: string;
488
+ };
489
+
490
+ type SystemUserApi = {
491
+ list: (params?: FetchSystemUsersParams, signal?: AbortSignal) => Promise<SystemUserListResult>;
492
+ create: (values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
493
+ update: (userId: string, values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
494
+ remove: (userId: string, signal?: AbortSignal) => Promise<unknown>;
495
+ listGroups: (params?: FetchSystemGroupsParams, signal?: AbortSignal) => Promise<SystemGroupOption[]>;
496
+ listRoleOptions: (params?: FetchSystemRoleOptionsParams, signal?: AbortSignal) => Promise<SystemRoleOption[]>;
497
+ };
498
+ declare function mapSystemUser(item: unknown): SystemUser | null;
499
+ declare function mapSystemGroupOption(item: unknown): SystemGroupOption | null;
500
+ declare function mapSystemRoleOption(item: unknown): SystemRoleOption | null;
501
+ /**
502
+ * 账号校验:不少于 6 位,且同时包含字母与数字。
503
+ * 通过返回 null,失败返回错误文案。
504
+ */
505
+ declare function validateUsername(username: string): string | null;
506
+ declare function buildCreateUserBody(values: SystemUserFormValues): CreateSystemUserBody;
507
+ declare function buildUpdateUserBody(values: SystemUserFormValues): UpdateSystemUserBody;
508
+ declare function createSystemUserApi(request: ResourceHttpRequest): SystemUserApi;
509
+
510
+ type UserManagerProps = {
511
+ api: SystemUserApi;
512
+ title?: string;
513
+ pageSize?: string;
514
+ toolbarExtra?: ReactNode;
515
+ };
516
+ declare function UserManager({ api, title, pageSize: initialPageSize, toolbarExtra, }: UserManagerProps): react.JSX.Element;
517
+
518
+ type SystemAdminMenuKey = 'menu' | 'resource' | 'role' | 'user';
428
519
  type SystemAdminSubMenu = {
429
520
  key: SystemAdminMenuKey;
430
521
  label: string;
@@ -442,6 +533,7 @@ type SystemAdminProps = {
442
533
  menuApi: MenuResourceApi;
443
534
  resourceApi: AuthorizationResourceApi;
444
535
  roleApi: SystemRoleApi;
536
+ userApi: SystemUserApi;
445
537
  /** 默认选中的子菜单,默认菜单管理 */
446
538
  defaultActiveKey?: SystemAdminMenuKey;
447
539
  /** 受控选中 key */
@@ -451,9 +543,9 @@ type SystemAdminProps = {
451
543
  toolbarExtra?: ReactNode;
452
544
  };
453
545
  /**
454
- * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色管理。
546
+ * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色 / 用户管理。
455
547
  */
456
- declare function SystemAdmin({ menuApi, resourceApi, roleApi, defaultActiveKey, activeKey: controlledKey, onActiveKeyChange, title, toolbarExtra, }: SystemAdminProps): react.JSX.Element;
548
+ declare function SystemAdmin({ menuApi, resourceApi, roleApi, userApi, defaultActiveKey, activeKey: controlledKey, onActiveKeyChange, title, toolbarExtra, }: SystemAdminProps): react.JSX.Element;
457
549
 
458
550
  interface SnowyflakeOptions {
459
551
  epoch?: bigint;
@@ -485,4 +577,4 @@ declare const snowyflake: ConfigurableSnowflake;
485
577
  declare function getAppClientId(): string;
486
578
  declare function getDeviceWorkerId(): string;
487
579
 
488
- export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CanProps, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemRolesParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuManagerProps, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionListener, PermissionProvider, type PermissionProviderProps, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceManagerProps, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RoleManagerProps, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminProps, type SystemAdminSubMenu, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UsePermissionResult, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionStore, createSystemRoleApi, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemRole, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission };
580
+ export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CanProps, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type CreateSystemUserBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemGroupsParams, type FetchSystemRoleOptionsParams, type FetchSystemRolesParams, type FetchSystemUsersParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuManagerProps, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionListener, PermissionProvider, type PermissionProviderProps, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceManagerProps, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RoleManagerProps, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminProps, type SystemAdminSubMenu, type SystemGroupOption, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type SystemRoleOption, type SystemUser, type SystemUserApi, type SystemUserFormValues, type SystemUserListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UpdateSystemUserBody, type UsePermissionResult, UserManager, type UserManagerProps, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildCreateUserBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, buildUpdateUserBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionStore, createSystemRoleApi, createSystemUserApi, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemGroupOption, mapSystemRole, mapSystemRoleOption, mapSystemUser, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission, validateUsername };
@@ -424,7 +424,98 @@ type RoleManagerProps = {
424
424
  };
425
425
  declare function RoleManager({ api, title, pageSize: initialPageSize, toolbarExtra, }: RoleManagerProps): react.JSX.Element;
426
426
 
427
- type SystemAdminMenuKey = 'menu' | 'resource' | 'role';
427
+ type SystemGroupOption = {
428
+ groupId: string;
429
+ name: string;
430
+ };
431
+ type SystemRoleOption = {
432
+ roleId: string;
433
+ name: string;
434
+ };
435
+ type SystemUser = {
436
+ userId: string;
437
+ username: string;
438
+ name: string;
439
+ groupIds: string[];
440
+ roleIds: string[];
441
+ /** 列表展示用,接口若返回则优先使用 */
442
+ groupNames?: string[];
443
+ roleNames?: string[];
444
+ enabled: boolean;
445
+ };
446
+ type SystemUserFormValues = {
447
+ username: string;
448
+ name: string;
449
+ /** 新增必填;编辑时可留空表示不修改 */
450
+ password: string;
451
+ groupIds: string[];
452
+ roleIds: string[];
453
+ enabled: boolean;
454
+ };
455
+ type CreateSystemUserBody = {
456
+ username: string;
457
+ name: string;
458
+ password: string;
459
+ groupIds: string[];
460
+ roleIds: string[];
461
+ enabled: boolean;
462
+ };
463
+ type UpdateSystemUserBody = {
464
+ username: string;
465
+ name: string;
466
+ password?: string;
467
+ groupIds: string[];
468
+ roleIds: string[];
469
+ enabled: boolean;
470
+ };
471
+ type FetchSystemUsersParams = {
472
+ keyword?: string;
473
+ /** undefined 表示不过滤 */
474
+ enabled?: boolean;
475
+ pagination?: ListPaginationParams;
476
+ };
477
+ type SystemUserListResult = {
478
+ records: SystemUser[];
479
+ pageToken: string;
480
+ hasPreviousPage: boolean;
481
+ hasNextPage: boolean;
482
+ };
483
+ type FetchSystemGroupsParams = {
484
+ keyword?: string;
485
+ };
486
+ type FetchSystemRoleOptionsParams = {
487
+ keyword?: string;
488
+ };
489
+
490
+ type SystemUserApi = {
491
+ list: (params?: FetchSystemUsersParams, signal?: AbortSignal) => Promise<SystemUserListResult>;
492
+ create: (values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
493
+ update: (userId: string, values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
494
+ remove: (userId: string, signal?: AbortSignal) => Promise<unknown>;
495
+ listGroups: (params?: FetchSystemGroupsParams, signal?: AbortSignal) => Promise<SystemGroupOption[]>;
496
+ listRoleOptions: (params?: FetchSystemRoleOptionsParams, signal?: AbortSignal) => Promise<SystemRoleOption[]>;
497
+ };
498
+ declare function mapSystemUser(item: unknown): SystemUser | null;
499
+ declare function mapSystemGroupOption(item: unknown): SystemGroupOption | null;
500
+ declare function mapSystemRoleOption(item: unknown): SystemRoleOption | null;
501
+ /**
502
+ * 账号校验:不少于 6 位,且同时包含字母与数字。
503
+ * 通过返回 null,失败返回错误文案。
504
+ */
505
+ declare function validateUsername(username: string): string | null;
506
+ declare function buildCreateUserBody(values: SystemUserFormValues): CreateSystemUserBody;
507
+ declare function buildUpdateUserBody(values: SystemUserFormValues): UpdateSystemUserBody;
508
+ declare function createSystemUserApi(request: ResourceHttpRequest): SystemUserApi;
509
+
510
+ type UserManagerProps = {
511
+ api: SystemUserApi;
512
+ title?: string;
513
+ pageSize?: string;
514
+ toolbarExtra?: ReactNode;
515
+ };
516
+ declare function UserManager({ api, title, pageSize: initialPageSize, toolbarExtra, }: UserManagerProps): react.JSX.Element;
517
+
518
+ type SystemAdminMenuKey = 'menu' | 'resource' | 'role' | 'user';
428
519
  type SystemAdminSubMenu = {
429
520
  key: SystemAdminMenuKey;
430
521
  label: string;
@@ -442,6 +533,7 @@ type SystemAdminProps = {
442
533
  menuApi: MenuResourceApi;
443
534
  resourceApi: AuthorizationResourceApi;
444
535
  roleApi: SystemRoleApi;
536
+ userApi: SystemUserApi;
445
537
  /** 默认选中的子菜单,默认菜单管理 */
446
538
  defaultActiveKey?: SystemAdminMenuKey;
447
539
  /** 受控选中 key */
@@ -451,9 +543,9 @@ type SystemAdminProps = {
451
543
  toolbarExtra?: ReactNode;
452
544
  };
453
545
  /**
454
- * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色管理。
546
+ * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色 / 用户管理。
455
547
  */
456
- declare function SystemAdmin({ menuApi, resourceApi, roleApi, defaultActiveKey, activeKey: controlledKey, onActiveKeyChange, title, toolbarExtra, }: SystemAdminProps): react.JSX.Element;
548
+ declare function SystemAdmin({ menuApi, resourceApi, roleApi, userApi, defaultActiveKey, activeKey: controlledKey, onActiveKeyChange, title, toolbarExtra, }: SystemAdminProps): react.JSX.Element;
457
549
 
458
550
  interface SnowyflakeOptions {
459
551
  epoch?: bigint;
@@ -485,4 +577,4 @@ declare const snowyflake: ConfigurableSnowflake;
485
577
  declare function getAppClientId(): string;
486
578
  declare function getDeviceWorkerId(): string;
487
579
 
488
- export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CanProps, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemRolesParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuManagerProps, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionListener, PermissionProvider, type PermissionProviderProps, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceManagerProps, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RoleManagerProps, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminProps, type SystemAdminSubMenu, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UsePermissionResult, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionStore, createSystemRoleApi, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemRole, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission };
580
+ export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CanProps, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type CreateSystemUserBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemGroupsParams, type FetchSystemRoleOptionsParams, type FetchSystemRolesParams, type FetchSystemUsersParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuManagerProps, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionListener, PermissionProvider, type PermissionProviderProps, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceManagerProps, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RoleManagerProps, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminProps, type SystemAdminSubMenu, type SystemGroupOption, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type SystemRoleOption, type SystemUser, type SystemUserApi, type SystemUserFormValues, type SystemUserListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UpdateSystemUserBody, type UsePermissionResult, UserManager, type UserManagerProps, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildCreateUserBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, buildUpdateUserBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionStore, createSystemRoleApi, createSystemUserApi, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemGroupOption, mapSystemRole, mapSystemRoleOption, mapSystemUser, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission, validateUsername };