@abpjs/identity-pro 2.9.0 → 3.0.0

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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,197 @@
1
- import { PagedResultDto, ABP, PagedAndSortedResultRequestDto, RestService } from '@abpjs/core';
2
- import React from 'react';
1
+ import { RoutesService, SettingTabsService, PagedResultDto, ABP, PagedAndSortedResultRequestDto, RestService } from '@abpjs/core';
2
+ import React, { ComponentType } from 'react';
3
+
4
+ /**
5
+ * Identity Policy Names
6
+ * Policy names for permission checking in the Identity module.
7
+ * @since 3.0.0
8
+ */
9
+ /**
10
+ * Identity policy names enum.
11
+ * Used for checking permissions in the identity management module.
12
+ * @since 3.0.0
13
+ */
14
+ declare const eIdentityPolicyNames: {
15
+ readonly IdentityManagement: "AbpIdentity.Roles || AbpIdentity.Users || AbpIdentity.ClaimTypes || AbpIdentity.OrganizationUnits";
16
+ readonly Roles: "AbpIdentity.Roles";
17
+ readonly Users: "AbpIdentity.Users";
18
+ readonly ClaimTypes: "AbpIdentity.ClaimTypes";
19
+ readonly OrganizationUnits: "AbpIdentity.OrganizationUnits";
20
+ };
21
+ /**
22
+ * Type for identity policy name values
23
+ */
24
+ type IdentityPolicyNameKey = (typeof eIdentityPolicyNames)[keyof typeof eIdentityPolicyNames];
25
+
26
+ /**
27
+ * Identity Route Names
28
+ * Route names for the Identity module navigation.
29
+ * @since 3.0.0
30
+ */
31
+ /**
32
+ * Identity route names enum.
33
+ * Used for localization and navigation configuration.
34
+ *
35
+ * Note: In v3.0.0, the Administration key was removed.
36
+ * Routes are now organized under IdentityManagement.
37
+ *
38
+ * @since 3.0.0
39
+ */
40
+ declare const eIdentityRouteNames: {
41
+ readonly IdentityManagement: "AbpIdentity::Menu:IdentityManagement";
42
+ readonly Roles: "AbpIdentity::Roles";
43
+ readonly Users: "AbpIdentity::Users";
44
+ readonly ClaimTypes: "AbpIdentity::ClaimTypes";
45
+ readonly OrganizationUnits: "AbpIdentity::OrganizationUnits";
46
+ };
47
+ /**
48
+ * Type for identity route name values
49
+ */
50
+ type IdentityRouteNameKey = (typeof eIdentityRouteNames)[keyof typeof eIdentityRouteNames];
51
+
52
+ /**
53
+ * Identity Setting Tab Names
54
+ * Setting tab names for the Identity module settings.
55
+ * @since 3.0.0
56
+ */
57
+ /**
58
+ * Identity setting tab names enum.
59
+ * Used for settings panel tab configuration.
60
+ * @since 3.0.0
61
+ */
62
+ declare const eIdentitySettingTabNames: {
63
+ readonly IdentityManagement: "AbpIdentity::Menu:IdentityManagement";
64
+ };
65
+ /**
66
+ * Type for identity setting tab name values
67
+ */
68
+ type IdentitySettingTabNameKey = (typeof eIdentitySettingTabNames)[keyof typeof eIdentitySettingTabNames];
69
+
70
+ /**
71
+ * Identity Settings Models
72
+ * Models for identity settings configuration.
73
+ * @since 3.0.0
74
+ */
75
+ /**
76
+ * Identity settings structure containing all identity-related settings.
77
+ */
78
+ interface Settings {
79
+ password: Password;
80
+ lockout: Lockout;
81
+ signIn: SignIn;
82
+ user: User;
83
+ }
84
+ /**
85
+ * Lockout settings for user account lockout behavior.
86
+ */
87
+ interface Lockout {
88
+ allowedForNewUsers: boolean;
89
+ lockoutDuration: number;
90
+ maxFailedAccessAttempts: number;
91
+ }
92
+ /**
93
+ * Password settings for password validation rules.
94
+ */
95
+ interface Password {
96
+ requiredLength: number;
97
+ requiredUniqueChars: number;
98
+ requireNonAlphanumeric: boolean;
99
+ requireLowercase: boolean;
100
+ requireUppercase: boolean;
101
+ requireDigit: boolean;
102
+ }
103
+ /**
104
+ * Sign-in settings for login behavior.
105
+ */
106
+ interface SignIn {
107
+ requireConfirmedEmail: boolean;
108
+ enablePhoneNumberConfirmation: boolean;
109
+ requireConfirmedPhoneNumber: boolean;
110
+ }
111
+ /**
112
+ * User settings for user profile behavior.
113
+ */
114
+ interface User {
115
+ isUserNameUpdateEnabled: boolean;
116
+ isEmailUpdateEnabled: boolean;
117
+ }
118
+
119
+ type identitySettings_Lockout = Lockout;
120
+ type identitySettings_Password = Password;
121
+ type identitySettings_Settings = Settings;
122
+ type identitySettings_SignIn = SignIn;
123
+ type identitySettings_User = User;
124
+ declare namespace identitySettings {
125
+ export type { identitySettings_Lockout as Lockout, identitySettings_Password as Password, identitySettings_Settings as Settings, identitySettings_SignIn as SignIn, identitySettings_User as User };
126
+ }
127
+
128
+ /**
129
+ * Identity Route Provider
130
+ * Provides route configuration for the Identity module.
131
+ * @since 3.0.0
132
+ */
133
+
134
+ /**
135
+ * Configures identity routes using the provided RoutesService.
136
+ * @param routes - The RoutesService instance to configure routes with
137
+ * @returns A function that adds identity routes when called
138
+ */
139
+ declare function configureRoutes(routes: RoutesService): () => void;
140
+ /**
141
+ * Initializes identity routes using the global RoutesService.
142
+ * Convenience function that uses the global RoutesService singleton.
143
+ * @returns A function that adds identity routes when called
144
+ */
145
+ declare function initializeIdentityRoutes(): () => void;
146
+ /**
147
+ * Identity route providers object.
148
+ * Can be used for DI-style configuration.
149
+ */
150
+ declare const IDENTITY_ROUTE_PROVIDERS: {
151
+ configureRoutes: typeof configureRoutes;
152
+ };
153
+
154
+ /**
155
+ * Identity Setting Tab Provider
156
+ * Provides setting tab configuration for the Identity module.
157
+ * @since 3.0.0
158
+ */
159
+
160
+ /**
161
+ * Identity setting tab configuration metadata.
162
+ * This is the configuration used to create the setting tab.
163
+ */
164
+ interface IdentitySettingTabConfig {
165
+ name: string;
166
+ requiredPolicy: string;
167
+ order: number;
168
+ }
169
+ /**
170
+ * Default identity setting tab configuration metadata.
171
+ * Contains the metadata for the Identity settings tab.
172
+ */
173
+ declare const IDENTITY_SETTING_TAB_CONFIG: IdentitySettingTabConfig;
174
+ /**
175
+ * Configures identity setting tabs using the provided SettingTabsService.
176
+ * @param settingTabs - The SettingTabsService instance to configure tabs with
177
+ * @param component - Optional component to render for the tab (defaults to placeholder)
178
+ * @returns A function that adds identity setting tabs when called
179
+ */
180
+ declare function configureSettingTabs(settingTabs: SettingTabsService, component?: ComponentType<unknown>): () => void;
181
+ /**
182
+ * Initializes identity setting tabs using the global SettingTabsService.
183
+ * Convenience function that uses the global SettingTabsService singleton.
184
+ * @param component - Optional component to render for the tab
185
+ * @returns A function that adds identity setting tabs when called
186
+ */
187
+ declare function initializeIdentitySettingTabs(component?: ComponentType<unknown>): () => void;
188
+ /**
189
+ * Identity setting tab providers object.
190
+ * Can be used for DI-style configuration.
191
+ */
192
+ declare const IDENTITY_SETTING_TAB_PROVIDERS: {
193
+ configureSettingTabs: typeof configureSettingTabs;
194
+ };
3
195
 
4
196
  /**
5
197
  * Organization Unit With Details DTO
@@ -373,27 +565,49 @@ declare const eIdentityComponents: {
373
565
  type IdentityComponentKey = (typeof eIdentityComponents)[keyof typeof eIdentityComponents];
374
566
 
375
567
  /**
376
- * Identity Pro Route Names
377
- * Translated from @volo/abp.ng.identity v2.9.0
568
+ * Identity Extensions Guard
569
+ * Guard for loading identity extensions before route activation.
570
+ * @since 3.0.0
378
571
  */
379
572
  /**
380
- * Enum-like const object for identity route names.
381
- * Used for localization and navigation configuration.
382
- * @since 2.7.0
383
- * @updated 2.9.0 - Added OrganizationUnits
573
+ * Hook to guard identity routes and load extensions.
574
+ * In Angular, this was a CanActivate guard that loaded entity actions,
575
+ * toolbar actions, entity props, and form props for identity components.
576
+ *
577
+ * In React, this is implemented as a hook that can be used in route loaders
578
+ * or component initialization.
579
+ *
580
+ * @returns Promise that resolves to true when extensions are loaded
384
581
  */
385
- declare const eIdentityRouteNames: {
386
- readonly Administration: "AbpUiNavigation::Menu:Administration";
387
- readonly IdentityManagement: "AbpIdentity::Menu:IdentityManagement";
388
- readonly Roles: "AbpIdentity::Roles";
389
- readonly Users: "AbpIdentity::Users";
390
- readonly ClaimTypes: "AbpIdentity::ClaimTypes";
391
- readonly OrganizationUnits: "AbpIdentity::OrganizationUnits";
582
+ declare function identityExtensionsGuard(): Promise<boolean>;
583
+ /**
584
+ * React hook version of the extensions guard.
585
+ * Can be used in route loaders or useEffect.
586
+ *
587
+ * @example
588
+ * ```tsx
589
+ * import { useIdentityExtensionsGuard } from '@abpjs/identity-pro';
590
+ *
591
+ * function IdentityLayout() {
592
+ * const { isLoaded, loading } = useIdentityExtensionsGuard();
593
+ *
594
+ * if (loading) return <Loading />;
595
+ *
596
+ * return <Outlet />;
597
+ * }
598
+ * ```
599
+ */
600
+ declare function useIdentityExtensionsGuard(): {
601
+ isLoaded: boolean;
602
+ loading: boolean;
392
603
  };
393
604
  /**
394
- * Type for identity route name values
605
+ * Identity Extensions Guard class (for compatibility with Angular pattern).
606
+ * @deprecated Use identityExtensionsGuard function or useIdentityExtensionsGuard hook instead.
395
607
  */
396
- type IdentityRouteNameKey = (typeof eIdentityRouteNames)[keyof typeof eIdentityRouteNames];
608
+ declare class IdentityExtensionsGuard {
609
+ canActivate(): Promise<boolean>;
610
+ }
397
611
 
398
612
  /**
399
613
  * Service for managing identity-related API operations.
@@ -511,11 +725,23 @@ declare class IdentityService {
511
725
  */
512
726
  updateUser(id: string, body: Identity.UserSaveRequest): Promise<Identity.UserItem>;
513
727
  /**
514
- * Get all claim type names for dropdowns
515
- * Pro feature since 0.7.2
516
- * @returns Promise with claim type names
728
+ * Get assignable roles for users
729
+ * @since 3.0.0
730
+ * @returns Promise with roles that can be assigned to users
517
731
  */
518
- getClaimTypeNames(): Promise<Identity.ClaimTypeName[]>;
732
+ getUserAssingableRoles(): Promise<Identity.RoleResponse>;
733
+ /**
734
+ * Get claim types available for roles
735
+ * @since 3.0.0
736
+ * @returns Promise with claim type names for roles
737
+ */
738
+ getRolesClaimTypes(): Promise<Identity.ClaimTypeName[]>;
739
+ /**
740
+ * Get claim types available for users
741
+ * @since 3.0.0
742
+ * @returns Promise with claim type names for users
743
+ */
744
+ getUsersClaimTypes(): Promise<Identity.ClaimTypeName[]>;
519
745
  /**
520
746
  * Get claim types with pagination
521
747
  * Pro feature since 0.7.2
@@ -576,12 +802,13 @@ declare class IdentityService {
576
802
 
577
803
  /**
578
804
  * Identity State Service
579
- * Translated from @volo/abp.ng.identity v2.0.0
805
+ * Translated from @volo/abp.ng.identity v3.0.0
580
806
  *
581
807
  * This service provides facade methods for dispatching identity actions.
582
808
  * In Angular, this uses NGXS store dispatch. In React, we wrap the API calls.
583
809
  *
584
810
  * @since 2.0.0
811
+ * @updated 3.0.0 - Removed getClaimTypeNames and dispatchGetClaimTypeNames
585
812
  */
586
813
 
587
814
  /**
@@ -591,6 +818,7 @@ declare class IdentityService {
591
818
  * Pro features include all dispatch methods for roles, users, and claim types.
592
819
  *
593
820
  * @since 2.0.0
821
+ * @updated 3.0.0 - Removed claim type names state (use getRolesClaimTypes/getUsersClaimTypes instead)
594
822
  */
595
823
  declare class IdentityStateService {
596
824
  private identityService;
@@ -600,7 +828,6 @@ declare class IdentityStateService {
600
828
  private _usersTotalCount;
601
829
  private _claimTypes;
602
830
  private _claimTypesTotalCount;
603
- private _claimTypeNames;
604
831
  constructor(restService: RestService);
605
832
  /**
606
833
  * Get the current roles
@@ -626,10 +853,6 @@ declare class IdentityStateService {
626
853
  * Get the total count of claim types
627
854
  */
628
855
  getClaimTypesTotalCount(): number;
629
- /**
630
- * Get the claim type names
631
- */
632
- getClaimTypeNames(): Identity.ClaimTypeName[];
633
856
  /**
634
857
  * Dispatch get roles action
635
858
  * @param params Query parameters for fetching roles
@@ -701,12 +924,6 @@ declare class IdentityStateService {
701
924
  * @since 2.0.0
702
925
  */
703
926
  dispatchUpdateClaimType(body: Identity.ClaimType): Promise<Identity.ClaimType>;
704
- /**
705
- * Dispatch get claim type names action
706
- * @returns Promise resolving to the claim type names
707
- * @since 2.0.0
708
- */
709
- dispatchGetClaimTypeNames(): Promise<Identity.ClaimTypeName[]>;
710
927
  /**
711
928
  * Dispatch get users action
712
929
  * @param params Query parameters for fetching users
@@ -1104,13 +1321,14 @@ interface ClaimOperationResult {
1104
1321
  /**
1105
1322
  * Return type for useClaims hook
1106
1323
  * @since 0.7.2
1324
+ * @updated 3.0.0 - Added fetchRolesClaimTypes and fetchUsersClaimTypes
1107
1325
  */
1108
1326
  interface UseClaimsReturn {
1109
1327
  /** List of claim types */
1110
1328
  claimTypes: Identity.ClaimType[];
1111
1329
  /** Total count of claim types */
1112
1330
  totalCount: number;
1113
- /** Claim type names for dropdowns */
1331
+ /** Claim type names for dropdowns (roles) */
1114
1332
  claimTypeNames: Identity.ClaimTypeName[];
1115
1333
  /** Currently selected claim type for editing */
1116
1334
  selectedClaimType: Identity.ClaimType | null;
@@ -1124,8 +1342,16 @@ interface UseClaimsReturn {
1124
1342
  sortOrder: SortOrder;
1125
1343
  /** Fetch all claim types with optional pagination/filtering */
1126
1344
  fetchClaimTypes: (params?: ABP.PageQueryParams) => Promise<ClaimOperationResult>;
1127
- /** Fetch claim type names for dropdowns */
1128
- fetchClaimTypeNames: () => Promise<ClaimOperationResult>;
1345
+ /**
1346
+ * Fetch claim type names for roles
1347
+ * @since 3.0.0
1348
+ */
1349
+ fetchRolesClaimTypes: () => Promise<ClaimOperationResult>;
1350
+ /**
1351
+ * Fetch claim type names for users
1352
+ * @since 3.0.0
1353
+ */
1354
+ fetchUsersClaimTypes: () => Promise<ClaimOperationResult>;
1129
1355
  /** Get a claim type by ID and set it as selected */
1130
1356
  getClaimTypeById: (id: string) => Promise<ClaimOperationResult>;
1131
1357
  /** Create a new claim type */
@@ -1378,6 +1604,274 @@ declare const IDENTITY_POLICIES: {
1378
1604
  readonly ROLES_DELETE: "AbpIdentity.Roles.Delete";
1379
1605
  };
1380
1606
 
1607
+ /**
1608
+ * Identity Extension Tokens
1609
+ * Provides extension points for customizing identity components.
1610
+ * @since 3.0.0
1611
+ */
1612
+
1613
+ /**
1614
+ * Entity action definition for grid row actions.
1615
+ * @template T - The entity type for the action
1616
+ */
1617
+ interface EntityAction<T> {
1618
+ text: string;
1619
+ action?: (record: {
1620
+ record: T;
1621
+ }) => void;
1622
+ visible?: (data: {
1623
+ record: T;
1624
+ }) => boolean;
1625
+ permission?: string;
1626
+ icon?: string;
1627
+ }
1628
+ /**
1629
+ * Toolbar action definition for grid toolbar buttons.
1630
+ * @template T - The entity array type for the action
1631
+ */
1632
+ interface ToolbarAction<T> {
1633
+ text: string;
1634
+ action?: (data: {
1635
+ data: T;
1636
+ }) => void;
1637
+ visible?: (data: {
1638
+ data: T;
1639
+ }) => boolean;
1640
+ permission?: string;
1641
+ icon?: string;
1642
+ }
1643
+ /**
1644
+ * Entity prop definition for grid columns.
1645
+ * @template T - The entity type for the prop
1646
+ */
1647
+ interface EntityProp<T> {
1648
+ type: string;
1649
+ name: keyof T | string;
1650
+ displayName: string;
1651
+ sortable?: boolean;
1652
+ visible?: (data: {
1653
+ record: T;
1654
+ }) => boolean;
1655
+ valueResolver?: (data: {
1656
+ record: T;
1657
+ }) => string | number | boolean;
1658
+ }
1659
+ /**
1660
+ * Form prop definition for form fields.
1661
+ * @template T - The entity type for the form
1662
+ */
1663
+ interface FormProp<T> {
1664
+ type: string;
1665
+ name: keyof T | string;
1666
+ displayName: string;
1667
+ validators?: unknown[];
1668
+ visible?: (data: {
1669
+ entity?: T;
1670
+ }) => boolean;
1671
+ defaultValue?: unknown;
1672
+ options?: unknown[];
1673
+ }
1674
+ type EntityActionContributorCallback<T> = (actions: EntityAction<T>[]) => EntityAction<T>[];
1675
+ type ToolbarActionContributorCallback<T> = (actions: ToolbarAction<T>[]) => ToolbarAction<T>[];
1676
+ type EntityPropContributorCallback<T> = (props: EntityProp<T>[]) => EntityProp<T>[];
1677
+ type CreateFormPropContributorCallback<T> = (props: FormProp<T>[]) => FormProp<T>[];
1678
+ type EditFormPropContributorCallback<T> = (props: FormProp<T>[]) => FormProp<T>[];
1679
+ /**
1680
+ * Default entity actions for Claims component.
1681
+ */
1682
+ declare const DEFAULT_CLAIMS_ENTITY_ACTIONS: EntityAction<Identity.ClaimType>[];
1683
+ /**
1684
+ * Default entity actions for Roles component.
1685
+ */
1686
+ declare const DEFAULT_ROLES_ENTITY_ACTIONS: EntityAction<Identity.RoleItem>[];
1687
+ /**
1688
+ * Default entity actions for Users component.
1689
+ */
1690
+ declare const DEFAULT_USERS_ENTITY_ACTIONS: EntityAction<Identity.UserItem>[];
1691
+ /**
1692
+ * Default entity actions for Organization Members component.
1693
+ */
1694
+ declare const DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS: EntityAction<Identity.UserItem>[];
1695
+ /**
1696
+ * Default entity actions for Organization Roles component.
1697
+ */
1698
+ declare const DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS: EntityAction<Identity.RoleItem>[];
1699
+ /**
1700
+ * Combined default identity entity actions.
1701
+ */
1702
+ declare const DEFAULT_IDENTITY_ENTITY_ACTIONS: {
1703
+ readonly 'Identity.ClaimsComponent': EntityAction<Identity.ClaimType>[];
1704
+ readonly 'Identity.RolesComponent': EntityAction<Identity.RoleItem>[];
1705
+ readonly 'Identity.UsersComponent': EntityAction<Identity.UserItem>[];
1706
+ readonly 'Identity.OrganizationMembersComponent': EntityAction<Identity.UserItem>[];
1707
+ readonly 'Identity.OrganizationRolesComponent': EntityAction<Identity.RoleItem>[];
1708
+ };
1709
+ /**
1710
+ * Default toolbar actions for Claims component.
1711
+ */
1712
+ declare const DEFAULT_CLAIMS_TOOLBAR_ACTIONS: ToolbarAction<Identity.ClaimType[]>[];
1713
+ /**
1714
+ * Default toolbar actions for Roles component.
1715
+ */
1716
+ declare const DEFAULT_ROLES_TOOLBAR_ACTIONS: ToolbarAction<Identity.RoleItem[]>[];
1717
+ /**
1718
+ * Default toolbar actions for Users component.
1719
+ */
1720
+ declare const DEFAULT_USERS_TOOLBAR_ACTIONS: ToolbarAction<Identity.UserItem[]>[];
1721
+ /**
1722
+ * Default toolbar actions for Organization Units component.
1723
+ */
1724
+ declare const DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS: ToolbarAction<OrganizationUnitWithDetailsDto[]>[];
1725
+ /**
1726
+ * Combined default identity toolbar actions.
1727
+ */
1728
+ declare const DEFAULT_IDENTITY_TOOLBAR_ACTIONS: {
1729
+ readonly 'Identity.ClaimsComponent': ToolbarAction<Identity.ClaimType[]>[];
1730
+ readonly 'Identity.RolesComponent': ToolbarAction<Identity.RoleItem[]>[];
1731
+ readonly 'Identity.UsersComponent': ToolbarAction<Identity.UserItem[]>[];
1732
+ readonly 'Identity.OrganizationUnitsComponent': ToolbarAction<OrganizationUnitWithDetailsDto[]>[];
1733
+ };
1734
+ /**
1735
+ * Default entity props for Claims component.
1736
+ */
1737
+ declare const DEFAULT_CLAIMS_ENTITY_PROPS: EntityProp<Identity.ClaimType>[];
1738
+ /**
1739
+ * Default entity props for Roles component.
1740
+ */
1741
+ declare const DEFAULT_ROLES_ENTITY_PROPS: EntityProp<Identity.RoleItem>[];
1742
+ /**
1743
+ * Default entity props for Users component.
1744
+ */
1745
+ declare const DEFAULT_USERS_ENTITY_PROPS: EntityProp<Identity.UserItem>[];
1746
+ /**
1747
+ * Default entity props for Organization Members component.
1748
+ */
1749
+ declare const DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS: EntityProp<Identity.UserItem>[];
1750
+ /**
1751
+ * Default entity props for Organization Roles component.
1752
+ */
1753
+ declare const DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS: EntityProp<Identity.RoleItem>[];
1754
+ /**
1755
+ * Combined default identity entity props.
1756
+ */
1757
+ declare const DEFAULT_IDENTITY_ENTITY_PROPS: {
1758
+ readonly 'Identity.ClaimsComponent': EntityProp<Identity.ClaimType>[];
1759
+ readonly 'Identity.RolesComponent': EntityProp<Identity.RoleItem>[];
1760
+ readonly 'Identity.UsersComponent': EntityProp<Identity.UserItem>[];
1761
+ readonly 'Identity.OrganizationMembersComponent': EntityProp<Identity.UserItem>[];
1762
+ readonly 'Identity.OrganizationRolesComponent': EntityProp<Identity.RoleItem>[];
1763
+ };
1764
+ /**
1765
+ * Default create form props for Claims component.
1766
+ */
1767
+ declare const DEFAULT_CLAIMS_CREATE_FORM_PROPS: FormProp<Identity.ClaimType>[];
1768
+ /**
1769
+ * Default edit form props for Claims component.
1770
+ */
1771
+ declare const DEFAULT_CLAIMS_EDIT_FORM_PROPS: FormProp<Identity.ClaimType>[];
1772
+ /**
1773
+ * Default create form props for Roles component.
1774
+ */
1775
+ declare const DEFAULT_ROLES_CREATE_FORM_PROPS: FormProp<Identity.RoleItem>[];
1776
+ /**
1777
+ * Default edit form props for Roles component.
1778
+ */
1779
+ declare const DEFAULT_ROLES_EDIT_FORM_PROPS: FormProp<Identity.RoleItem>[];
1780
+ /**
1781
+ * Default create form props for Users component.
1782
+ */
1783
+ declare const DEFAULT_USERS_CREATE_FORM_PROPS: FormProp<Identity.UserItem>[];
1784
+ /**
1785
+ * Default edit form props for Users component.
1786
+ */
1787
+ declare const DEFAULT_USERS_EDIT_FORM_PROPS: FormProp<Identity.UserItem>[];
1788
+ /**
1789
+ * Combined default identity create form props.
1790
+ */
1791
+ declare const DEFAULT_IDENTITY_CREATE_FORM_PROPS: {
1792
+ readonly 'Identity.ClaimsComponent': FormProp<Identity.ClaimType>[];
1793
+ readonly 'Identity.RolesComponent': FormProp<Identity.RoleItem>[];
1794
+ readonly 'Identity.UsersComponent': FormProp<Identity.UserItem>[];
1795
+ };
1796
+ /**
1797
+ * Combined default identity edit form props.
1798
+ */
1799
+ declare const DEFAULT_IDENTITY_EDIT_FORM_PROPS: {
1800
+ readonly 'Identity.ClaimsComponent': FormProp<Identity.ClaimType>[];
1801
+ readonly 'Identity.RolesComponent': FormProp<Identity.RoleItem>[];
1802
+ readonly 'Identity.UsersComponent': FormProp<Identity.UserItem>[];
1803
+ };
1804
+ /**
1805
+ * Entity action contributors type.
1806
+ */
1807
+ type IdentityEntityActionContributors = Partial<{
1808
+ [eIdentityComponents.Claims]: EntityActionContributorCallback<Identity.ClaimType>[];
1809
+ [eIdentityComponents.Roles]: EntityActionContributorCallback<Identity.RoleItem>[];
1810
+ [eIdentityComponents.Users]: EntityActionContributorCallback<Identity.UserItem>[];
1811
+ [eIdentityComponents.OrganizationMembers]: EntityActionContributorCallback<Identity.UserItem>[];
1812
+ [eIdentityComponents.OrganizationRoles]: EntityActionContributorCallback<Identity.RoleItem>[];
1813
+ }>;
1814
+ /**
1815
+ * Toolbar action contributors type.
1816
+ */
1817
+ type IdentityToolbarActionContributors = Partial<{
1818
+ [eIdentityComponents.Claims]: ToolbarActionContributorCallback<Identity.ClaimType[]>[];
1819
+ [eIdentityComponents.Roles]: ToolbarActionContributorCallback<Identity.RoleItem[]>[];
1820
+ [eIdentityComponents.Users]: ToolbarActionContributorCallback<Identity.UserItem[]>[];
1821
+ [eIdentityComponents.OrganizationUnits]: ToolbarActionContributorCallback<OrganizationUnitWithDetailsDto[]>[];
1822
+ }>;
1823
+ /**
1824
+ * Entity prop contributors type.
1825
+ */
1826
+ type IdentityEntityPropContributors = Partial<{
1827
+ [eIdentityComponents.Claims]: EntityPropContributorCallback<Identity.ClaimType>[];
1828
+ [eIdentityComponents.Roles]: EntityPropContributorCallback<Identity.RoleItem>[];
1829
+ [eIdentityComponents.Users]: EntityPropContributorCallback<Identity.UserItem>[];
1830
+ [eIdentityComponents.OrganizationMembers]: EntityPropContributorCallback<Identity.UserItem>[];
1831
+ [eIdentityComponents.OrganizationRoles]: EntityPropContributorCallback<Identity.RoleItem>[];
1832
+ }>;
1833
+ /**
1834
+ * Create form prop contributors type.
1835
+ */
1836
+ type IdentityCreateFormPropContributors = Partial<{
1837
+ [eIdentityComponents.Claims]: CreateFormPropContributorCallback<Identity.ClaimType>[];
1838
+ [eIdentityComponents.Roles]: CreateFormPropContributorCallback<Identity.RoleItem>[];
1839
+ [eIdentityComponents.Users]: CreateFormPropContributorCallback<Identity.UserItem>[];
1840
+ }>;
1841
+ /**
1842
+ * Edit form prop contributors type.
1843
+ */
1844
+ type IdentityEditFormPropContributors = Partial<{
1845
+ [eIdentityComponents.Claims]: EditFormPropContributorCallback<Identity.ClaimType>[];
1846
+ [eIdentityComponents.Roles]: EditFormPropContributorCallback<Identity.RoleItem>[];
1847
+ [eIdentityComponents.Users]: EditFormPropContributorCallback<Identity.UserItem>[];
1848
+ }>;
1849
+ /**
1850
+ * Token for identity entity action contributors.
1851
+ * Use as a React Context key.
1852
+ */
1853
+ declare const IDENTITY_ENTITY_ACTION_CONTRIBUTORS: unique symbol;
1854
+ /**
1855
+ * Token for identity toolbar action contributors.
1856
+ * Use as a React Context key.
1857
+ */
1858
+ declare const IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS: unique symbol;
1859
+ /**
1860
+ * Token for identity entity prop contributors.
1861
+ * Use as a React Context key.
1862
+ */
1863
+ declare const IDENTITY_ENTITY_PROP_CONTRIBUTORS: unique symbol;
1864
+ /**
1865
+ * Token for identity create form prop contributors.
1866
+ * Use as a React Context key.
1867
+ */
1868
+ declare const IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS: unique symbol;
1869
+ /**
1870
+ * Token for identity edit form prop contributors.
1871
+ * Use as a React Context key.
1872
+ */
1873
+ declare const IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS: unique symbol;
1874
+
1381
1875
  /**
1382
1876
  * Tree Adapter Utility
1383
1877
  * Translated from @volo/abp.ng.identity v2.9.0
@@ -1538,4 +2032,4 @@ declare class TreeAdapter<T extends BaseNode = BaseNode> {
1538
2032
  expandPathToNode(id: string): void;
1539
2033
  }
1540
2034
 
1541
- export { type BaseNode, ClaimModal, type ClaimModalProps, type ClaimOperationResult, ClaimsComponent, type ClaimsComponentProps, type GetOrganizationUnitInput, IDENTITY_POLICIES, IDENTITY_ROUTES, IDENTITY_ROUTE_PATHS, Identity, type IdentityComponentKey, type IdentityRouteNameKey, IdentityService, IdentityStateService, type OrganizationUnitCreateDto, type OrganizationUnitCreateOrUpdateDtoBase, type OrganizationUnitMoveInput, type OrganizationUnitRoleInput, OrganizationUnitService, type OrganizationUnitUpdateDto, type OrganizationUnitUserInput, type OrganizationUnitWithDetailsDto, type RoleOperationResult, RolesComponent, type RolesComponentProps, type SortOrder, TreeAdapter, type TreeNode, type UseClaimsReturn, type UseIdentityReturn, type UseRolesReturn, type UseUsersReturn, type UserOperationResult, UsersComponent, type UsersComponentProps, createGetOrganizationUnitInput, createOrganizationUnitCreateDto, createOrganizationUnitCreateOrUpdateDtoBase, createOrganizationUnitMoveInput, createOrganizationUnitRoleInput, createOrganizationUnitUpdateDto, createOrganizationUnitUserInput, createOrganizationUnitWithDetailsDto, createTreeNode, eIdentityComponents, eIdentityRouteNames, useClaims, useIdentity, useRoles, useUsers };
2035
+ export { type BaseNode, ClaimModal, type ClaimModalProps, type ClaimOperationResult, ClaimsComponent, type ClaimsComponentProps, type CreateFormPropContributorCallback, DEFAULT_CLAIMS_CREATE_FORM_PROPS, DEFAULT_CLAIMS_EDIT_FORM_PROPS, DEFAULT_CLAIMS_ENTITY_ACTIONS, DEFAULT_CLAIMS_ENTITY_PROPS, DEFAULT_CLAIMS_TOOLBAR_ACTIONS, DEFAULT_IDENTITY_CREATE_FORM_PROPS, DEFAULT_IDENTITY_EDIT_FORM_PROPS, DEFAULT_IDENTITY_ENTITY_ACTIONS, DEFAULT_IDENTITY_ENTITY_PROPS, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS, DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS, DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS, DEFAULT_ROLES_CREATE_FORM_PROPS, DEFAULT_ROLES_EDIT_FORM_PROPS, DEFAULT_ROLES_ENTITY_ACTIONS, DEFAULT_ROLES_ENTITY_PROPS, DEFAULT_ROLES_TOOLBAR_ACTIONS, DEFAULT_USERS_CREATE_FORM_PROPS, DEFAULT_USERS_EDIT_FORM_PROPS, DEFAULT_USERS_ENTITY_ACTIONS, DEFAULT_USERS_ENTITY_PROPS, DEFAULT_USERS_TOOLBAR_ACTIONS, type EditFormPropContributorCallback, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type FormProp, type GetOrganizationUnitInput, IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, IDENTITY_ENTITY_ACTION_CONTRIBUTORS, IDENTITY_ENTITY_PROP_CONTRIBUTORS, IDENTITY_POLICIES, IDENTITY_ROUTES, IDENTITY_ROUTE_PATHS, IDENTITY_ROUTE_PROVIDERS, IDENTITY_SETTING_TAB_CONFIG, IDENTITY_SETTING_TAB_PROVIDERS, IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, Identity, type IdentityComponentKey, type IdentityCreateFormPropContributors, type IdentityEditFormPropContributors, type IdentityEntityActionContributors, type IdentityEntityPropContributors, IdentityExtensionsGuard, type IdentityPolicyNameKey, type IdentityRouteNameKey, IdentityService, type IdentitySettingTabConfig, type IdentitySettingTabNameKey, identitySettings as IdentitySettings, IdentityStateService, type IdentityToolbarActionContributors, type OrganizationUnitCreateDto, type OrganizationUnitCreateOrUpdateDtoBase, type OrganizationUnitMoveInput, type OrganizationUnitRoleInput, OrganizationUnitService, type OrganizationUnitUpdateDto, type OrganizationUnitUserInput, type OrganizationUnitWithDetailsDto, type RoleOperationResult, RolesComponent, type RolesComponentProps, type SortOrder, type ToolbarAction, type ToolbarActionContributorCallback, TreeAdapter, type TreeNode, type UseClaimsReturn, type UseIdentityReturn, type UseRolesReturn, type UseUsersReturn, type UserOperationResult, UsersComponent, type UsersComponentProps, configureRoutes, configureSettingTabs, createGetOrganizationUnitInput, createOrganizationUnitCreateDto, createOrganizationUnitCreateOrUpdateDtoBase, createOrganizationUnitMoveInput, createOrganizationUnitRoleInput, createOrganizationUnitUpdateDto, createOrganizationUnitUserInput, createOrganizationUnitWithDetailsDto, createTreeNode, eIdentityComponents, eIdentityPolicyNames, eIdentityRouteNames, eIdentitySettingTabNames, identityExtensionsGuard, initializeIdentityRoutes, initializeIdentitySettingTabs, useClaims, useIdentity, useIdentityExtensionsGuard, useRoles, useUsers };