@authhero/adapter-interfaces 0.81.0 → 0.82.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/adapter-interfaces.d.ts +12 -0
- package/package.json +1 -1
|
@@ -14717,6 +14717,17 @@ export interface RolesAdapter {
|
|
|
14717
14717
|
update(tenantId: string, roleId: string, updates: Partial<Role>): Promise<boolean>;
|
|
14718
14718
|
remove(tenantId: string, roleId: string): Promise<boolean>;
|
|
14719
14719
|
}
|
|
14720
|
+
export interface ListUserRolesResponse {
|
|
14721
|
+
roles: Role[];
|
|
14722
|
+
start: number;
|
|
14723
|
+
limit: number;
|
|
14724
|
+
length: number;
|
|
14725
|
+
}
|
|
14726
|
+
export interface UserRolesAdapter {
|
|
14727
|
+
list(tenantId: string, userId: string, params?: ListParams): Promise<Role[]>;
|
|
14728
|
+
assign(tenantId: string, userId: string, roles: string[]): Promise<boolean>;
|
|
14729
|
+
remove(tenantId: string, userId: string, roles: string[]): Promise<boolean>;
|
|
14730
|
+
}
|
|
14720
14731
|
export interface DataAdapters {
|
|
14721
14732
|
applications: ApplicationsAdapter;
|
|
14722
14733
|
branding: BrandingAdapter;
|
|
@@ -14741,6 +14752,7 @@ export interface DataAdapters {
|
|
|
14741
14752
|
tenants: TenantsDataAdapter;
|
|
14742
14753
|
themes: ThemesAdapter;
|
|
14743
14754
|
users: UserDataAdapter;
|
|
14755
|
+
userRoles: UserRolesAdapter;
|
|
14744
14756
|
}
|
|
14745
14757
|
|
|
14746
14758
|
export {
|