com-angel-authorization 1.0.16 → 1.0.18

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.
@@ -499,6 +499,27 @@ declare function mapPermissionTreeNode(item: unknown): RolePermissionTreeNode |
499
499
  declare function mapRolePermissions(payload: unknown): RolePermissionsResult;
500
500
  /** 收集节点及其全部子孙 resourceId */
501
501
  declare function collectTreeResourceIds(node: RolePermissionTreeNode): string[];
502
+ type PermissionTreeIndex = {
503
+ parentMap: Map<string, string | null>;
504
+ nodeMap: Map<string, RolePermissionTreeNode>;
505
+ };
506
+ /** 建立父节点索引,供父子联动向上回写 */
507
+ declare function buildPermissionTreeIndex(tree: RolePermissionTreeNode[]): PermissionTreeIndex;
508
+ /**
509
+ * 父子联动勾选:
510
+ * - 勾选:当前节点 + 全部子孙选中,并向上:子节点全选则父节点选中
511
+ * - 取消:当前节点 + 全部子孙取消,并向上:任一子未选则父节点取消(半选由 UI 展示)
512
+ */
513
+ declare function togglePermissionCheck(tree: RolePermissionTreeNode[], checked: ReadonlySet<string>, node: RolePermissionTreeNode): Set<string>;
514
+ /** 子孙勾选统计(不含自身),用于半选态 */
515
+ declare function countCheckedDescendants(node: RolePermissionTreeNode, checked: ReadonlySet<string>): {
516
+ total: number;
517
+ checkedCount: number;
518
+ };
519
+ /** 是否存在已勾选的子孙节点 */
520
+ declare function hasCheckedDescendant(node: RolePermissionTreeNode, checked: ReadonlySet<string>): boolean;
521
+ /** 半选:自身未勾选,但存在已勾选的子孙 */
522
+ declare function isPermissionNodeIndeterminate(node: RolePermissionTreeNode, checked: ReadonlySet<string>): boolean;
502
523
  declare function buildCreateRoleBody(values: SystemRoleFormValues): CreateSystemRoleBody;
503
524
  declare function buildUpdateRoleBody(values: SystemRoleFormValues): UpdateSystemRoleBody;
504
525
  declare function buildSavePermissionsBody(resourceIds: string[]): SaveRolePermissionsBody;
@@ -540,7 +561,126 @@ declare const RoleManager: vue.DefineComponent<vue.ExtractPropTypes<{
540
561
  pageSize: string;
541
562
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
542
563
 
543
- type SystemAdminMenuKey = 'menu' | 'resource' | 'role';
564
+ type SystemGroupOption = {
565
+ groupId: string;
566
+ name: string;
567
+ };
568
+ type SystemRoleOption = {
569
+ roleId: string;
570
+ name: string;
571
+ };
572
+ type SystemUser = {
573
+ userId: string;
574
+ username: string;
575
+ name: string;
576
+ groupIds: string[];
577
+ roleIds: string[];
578
+ /** 列表展示用,接口若返回则优先使用 */
579
+ groupNames?: string[];
580
+ roleNames?: string[];
581
+ enabled: boolean;
582
+ };
583
+ type SystemUserFormValues = {
584
+ username: string;
585
+ name: string;
586
+ /** 新增必填;编辑时可留空表示不修改 */
587
+ password: string;
588
+ groupIds: string[];
589
+ roleIds: string[];
590
+ enabled: boolean;
591
+ };
592
+ type CreateSystemUserBody = {
593
+ username: string;
594
+ name: string;
595
+ password: string;
596
+ groupIds: string[];
597
+ roleIds: string[];
598
+ enabled: boolean;
599
+ };
600
+ type UpdateSystemUserBody = {
601
+ username: string;
602
+ name: string;
603
+ password?: string;
604
+ groupIds: string[];
605
+ roleIds: string[];
606
+ enabled: boolean;
607
+ };
608
+ type FetchSystemUsersParams = {
609
+ keyword?: string;
610
+ /** undefined 表示不过滤 */
611
+ enabled?: boolean;
612
+ pagination?: ListPaginationParams;
613
+ };
614
+ type SystemUserListResult = {
615
+ records: SystemUser[];
616
+ pageToken: string;
617
+ hasPreviousPage: boolean;
618
+ hasNextPage: boolean;
619
+ };
620
+ type FetchSystemGroupsParams = {
621
+ keyword?: string;
622
+ };
623
+ type FetchSystemRoleOptionsParams = {
624
+ keyword?: string;
625
+ };
626
+
627
+ type SystemUserApi = {
628
+ list: (params?: FetchSystemUsersParams, signal?: AbortSignal) => Promise<SystemUserListResult>;
629
+ create: (values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
630
+ update: (userId: string, values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
631
+ remove: (userId: string, signal?: AbortSignal) => Promise<unknown>;
632
+ listGroups: (params?: FetchSystemGroupsParams, signal?: AbortSignal) => Promise<SystemGroupOption[]>;
633
+ listRoleOptions: (params?: FetchSystemRoleOptionsParams, signal?: AbortSignal) => Promise<SystemRoleOption[]>;
634
+ };
635
+ declare function mapSystemUser(item: unknown): SystemUser | null;
636
+ declare function mapSystemGroupOption(item: unknown): SystemGroupOption | null;
637
+ declare function mapSystemRoleOption(item: unknown): SystemRoleOption | null;
638
+ /**
639
+ * 账号校验:不少于 6 位,且同时包含字母与数字。
640
+ * 通过返回 null,失败返回错误文案。
641
+ */
642
+ declare function validateUsername(username: string): string | null;
643
+ declare function buildCreateUserBody(values: SystemUserFormValues): CreateSystemUserBody;
644
+ declare function buildUpdateUserBody(values: SystemUserFormValues): UpdateSystemUserBody;
645
+ declare function createSystemUserApi(request: ResourceHttpRequest): SystemUserApi;
646
+
647
+ /**
648
+ * 用户管理页面(Vue 3)
649
+ */
650
+ declare const UserManager: vue.DefineComponent<vue.ExtractPropTypes<{
651
+ api: {
652
+ type: PropType<SystemUserApi>;
653
+ required: true;
654
+ };
655
+ title: {
656
+ type: StringConstructor;
657
+ default: string;
658
+ };
659
+ pageSize: {
660
+ type: StringConstructor;
661
+ default: string;
662
+ };
663
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
664
+ [key: string]: any;
665
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
666
+ api: {
667
+ type: PropType<SystemUserApi>;
668
+ required: true;
669
+ };
670
+ title: {
671
+ type: StringConstructor;
672
+ default: string;
673
+ };
674
+ pageSize: {
675
+ type: StringConstructor;
676
+ default: string;
677
+ };
678
+ }>> & Readonly<{}>, {
679
+ title: string;
680
+ pageSize: string;
681
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
682
+
683
+ type SystemAdminMenuKey = 'menu' | 'resource' | 'role' | 'user';
544
684
  type SystemAdminSubMenu = {
545
685
  key: SystemAdminMenuKey;
546
686
  label: string;
@@ -555,7 +695,7 @@ declare const SYSTEM_ADMIN_MENU: SystemAdminMenuGroup;
555
695
  declare const SYSTEM_ADMIN_DEFAULT_KEY: SystemAdminMenuKey;
556
696
 
557
697
  /**
558
- * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色管理。
698
+ * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色 / 用户管理。
559
699
  */
560
700
  declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
561
701
  menuApi: {
@@ -570,6 +710,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
570
710
  type: PropType<SystemRoleApi>;
571
711
  required: true;
572
712
  };
713
+ userApi: {
714
+ type: PropType<SystemUserApi>;
715
+ required: true;
716
+ };
573
717
  defaultActiveKey: {
574
718
  type: PropType<SystemAdminMenuKey>;
575
719
  default: SystemAdminMenuKey;
@@ -600,6 +744,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
600
744
  type: PropType<SystemRoleApi>;
601
745
  required: true;
602
746
  };
747
+ userApi: {
748
+ type: PropType<SystemUserApi>;
749
+ required: true;
750
+ };
603
751
  defaultActiveKey: {
604
752
  type: PropType<SystemAdminMenuKey>;
605
753
  default: SystemAdminMenuKey;
@@ -651,4 +799,4 @@ declare const snowyflake: ConfigurableSnowflake;
651
799
  declare function getAppClientId(): string;
652
800
  declare function getDeviceWorkerId(): string;
653
801
 
654
- export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, 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 MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, 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 ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminSubMenu, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UsePermissionResult, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, collectTreeResourceIds, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, isMenuLeaf, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemRole, resolveMenuDepth, snowyflake, useHasPermission, useHasRole, usePermission };
802
+ export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, 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 MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, 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 ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, 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, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildCreateUserBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, buildUpdateUserBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createSystemUserApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemGroupOption, mapSystemRole, mapSystemRoleOption, mapSystemUser, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission, validateUsername };
@@ -499,6 +499,27 @@ declare function mapPermissionTreeNode(item: unknown): RolePermissionTreeNode |
499
499
  declare function mapRolePermissions(payload: unknown): RolePermissionsResult;
500
500
  /** 收集节点及其全部子孙 resourceId */
501
501
  declare function collectTreeResourceIds(node: RolePermissionTreeNode): string[];
502
+ type PermissionTreeIndex = {
503
+ parentMap: Map<string, string | null>;
504
+ nodeMap: Map<string, RolePermissionTreeNode>;
505
+ };
506
+ /** 建立父节点索引,供父子联动向上回写 */
507
+ declare function buildPermissionTreeIndex(tree: RolePermissionTreeNode[]): PermissionTreeIndex;
508
+ /**
509
+ * 父子联动勾选:
510
+ * - 勾选:当前节点 + 全部子孙选中,并向上:子节点全选则父节点选中
511
+ * - 取消:当前节点 + 全部子孙取消,并向上:任一子未选则父节点取消(半选由 UI 展示)
512
+ */
513
+ declare function togglePermissionCheck(tree: RolePermissionTreeNode[], checked: ReadonlySet<string>, node: RolePermissionTreeNode): Set<string>;
514
+ /** 子孙勾选统计(不含自身),用于半选态 */
515
+ declare function countCheckedDescendants(node: RolePermissionTreeNode, checked: ReadonlySet<string>): {
516
+ total: number;
517
+ checkedCount: number;
518
+ };
519
+ /** 是否存在已勾选的子孙节点 */
520
+ declare function hasCheckedDescendant(node: RolePermissionTreeNode, checked: ReadonlySet<string>): boolean;
521
+ /** 半选:自身未勾选,但存在已勾选的子孙 */
522
+ declare function isPermissionNodeIndeterminate(node: RolePermissionTreeNode, checked: ReadonlySet<string>): boolean;
502
523
  declare function buildCreateRoleBody(values: SystemRoleFormValues): CreateSystemRoleBody;
503
524
  declare function buildUpdateRoleBody(values: SystemRoleFormValues): UpdateSystemRoleBody;
504
525
  declare function buildSavePermissionsBody(resourceIds: string[]): SaveRolePermissionsBody;
@@ -540,7 +561,126 @@ declare const RoleManager: vue.DefineComponent<vue.ExtractPropTypes<{
540
561
  pageSize: string;
541
562
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
542
563
 
543
- type SystemAdminMenuKey = 'menu' | 'resource' | 'role';
564
+ type SystemGroupOption = {
565
+ groupId: string;
566
+ name: string;
567
+ };
568
+ type SystemRoleOption = {
569
+ roleId: string;
570
+ name: string;
571
+ };
572
+ type SystemUser = {
573
+ userId: string;
574
+ username: string;
575
+ name: string;
576
+ groupIds: string[];
577
+ roleIds: string[];
578
+ /** 列表展示用,接口若返回则优先使用 */
579
+ groupNames?: string[];
580
+ roleNames?: string[];
581
+ enabled: boolean;
582
+ };
583
+ type SystemUserFormValues = {
584
+ username: string;
585
+ name: string;
586
+ /** 新增必填;编辑时可留空表示不修改 */
587
+ password: string;
588
+ groupIds: string[];
589
+ roleIds: string[];
590
+ enabled: boolean;
591
+ };
592
+ type CreateSystemUserBody = {
593
+ username: string;
594
+ name: string;
595
+ password: string;
596
+ groupIds: string[];
597
+ roleIds: string[];
598
+ enabled: boolean;
599
+ };
600
+ type UpdateSystemUserBody = {
601
+ username: string;
602
+ name: string;
603
+ password?: string;
604
+ groupIds: string[];
605
+ roleIds: string[];
606
+ enabled: boolean;
607
+ };
608
+ type FetchSystemUsersParams = {
609
+ keyword?: string;
610
+ /** undefined 表示不过滤 */
611
+ enabled?: boolean;
612
+ pagination?: ListPaginationParams;
613
+ };
614
+ type SystemUserListResult = {
615
+ records: SystemUser[];
616
+ pageToken: string;
617
+ hasPreviousPage: boolean;
618
+ hasNextPage: boolean;
619
+ };
620
+ type FetchSystemGroupsParams = {
621
+ keyword?: string;
622
+ };
623
+ type FetchSystemRoleOptionsParams = {
624
+ keyword?: string;
625
+ };
626
+
627
+ type SystemUserApi = {
628
+ list: (params?: FetchSystemUsersParams, signal?: AbortSignal) => Promise<SystemUserListResult>;
629
+ create: (values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
630
+ update: (userId: string, values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
631
+ remove: (userId: string, signal?: AbortSignal) => Promise<unknown>;
632
+ listGroups: (params?: FetchSystemGroupsParams, signal?: AbortSignal) => Promise<SystemGroupOption[]>;
633
+ listRoleOptions: (params?: FetchSystemRoleOptionsParams, signal?: AbortSignal) => Promise<SystemRoleOption[]>;
634
+ };
635
+ declare function mapSystemUser(item: unknown): SystemUser | null;
636
+ declare function mapSystemGroupOption(item: unknown): SystemGroupOption | null;
637
+ declare function mapSystemRoleOption(item: unknown): SystemRoleOption | null;
638
+ /**
639
+ * 账号校验:不少于 6 位,且同时包含字母与数字。
640
+ * 通过返回 null,失败返回错误文案。
641
+ */
642
+ declare function validateUsername(username: string): string | null;
643
+ declare function buildCreateUserBody(values: SystemUserFormValues): CreateSystemUserBody;
644
+ declare function buildUpdateUserBody(values: SystemUserFormValues): UpdateSystemUserBody;
645
+ declare function createSystemUserApi(request: ResourceHttpRequest): SystemUserApi;
646
+
647
+ /**
648
+ * 用户管理页面(Vue 3)
649
+ */
650
+ declare const UserManager: vue.DefineComponent<vue.ExtractPropTypes<{
651
+ api: {
652
+ type: PropType<SystemUserApi>;
653
+ required: true;
654
+ };
655
+ title: {
656
+ type: StringConstructor;
657
+ default: string;
658
+ };
659
+ pageSize: {
660
+ type: StringConstructor;
661
+ default: string;
662
+ };
663
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
664
+ [key: string]: any;
665
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
666
+ api: {
667
+ type: PropType<SystemUserApi>;
668
+ required: true;
669
+ };
670
+ title: {
671
+ type: StringConstructor;
672
+ default: string;
673
+ };
674
+ pageSize: {
675
+ type: StringConstructor;
676
+ default: string;
677
+ };
678
+ }>> & Readonly<{}>, {
679
+ title: string;
680
+ pageSize: string;
681
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
682
+
683
+ type SystemAdminMenuKey = 'menu' | 'resource' | 'role' | 'user';
544
684
  type SystemAdminSubMenu = {
545
685
  key: SystemAdminMenuKey;
546
686
  label: string;
@@ -555,7 +695,7 @@ declare const SYSTEM_ADMIN_MENU: SystemAdminMenuGroup;
555
695
  declare const SYSTEM_ADMIN_DEFAULT_KEY: SystemAdminMenuKey;
556
696
 
557
697
  /**
558
- * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色管理。
698
+ * 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色 / 用户管理。
559
699
  */
560
700
  declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
561
701
  menuApi: {
@@ -570,6 +710,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
570
710
  type: PropType<SystemRoleApi>;
571
711
  required: true;
572
712
  };
713
+ userApi: {
714
+ type: PropType<SystemUserApi>;
715
+ required: true;
716
+ };
573
717
  defaultActiveKey: {
574
718
  type: PropType<SystemAdminMenuKey>;
575
719
  default: SystemAdminMenuKey;
@@ -600,6 +744,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
600
744
  type: PropType<SystemRoleApi>;
601
745
  required: true;
602
746
  };
747
+ userApi: {
748
+ type: PropType<SystemUserApi>;
749
+ required: true;
750
+ };
603
751
  defaultActiveKey: {
604
752
  type: PropType<SystemAdminMenuKey>;
605
753
  default: SystemAdminMenuKey;
@@ -651,4 +799,4 @@ declare const snowyflake: ConfigurableSnowflake;
651
799
  declare function getAppClientId(): string;
652
800
  declare function getDeviceWorkerId(): string;
653
801
 
654
- export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, 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 MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, 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 ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminSubMenu, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UsePermissionResult, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, collectTreeResourceIds, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, isMenuLeaf, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemRole, resolveMenuDepth, snowyflake, useHasPermission, useHasRole, usePermission };
802
+ export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, 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 MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, 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 ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, 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, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildCreateUserBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, buildUpdateUserBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createSystemUserApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemGroupOption, mapSystemRole, mapSystemRoleOption, mapSystemUser, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission, validateUsername };