@authhero/adapter-interfaces 0.127.0 → 0.128.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.
|
@@ -36716,15 +36716,9 @@ export interface KeysAdapter {
|
|
|
36716
36716
|
list: (params?: ListParams) => Promise<ListKeysResponse>;
|
|
36717
36717
|
update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
|
|
36718
36718
|
}
|
|
36719
|
-
export interface UniversalLoginTemplate {
|
|
36720
|
-
body: string;
|
|
36721
|
-
}
|
|
36722
36719
|
export interface BrandingAdapter {
|
|
36723
36720
|
set: (tenant_id: string, authCode: Branding) => Promise<void>;
|
|
36724
36721
|
get: (tenant_id: string) => Promise<Branding | null>;
|
|
36725
|
-
setUniversalLoginTemplate: (tenant_id: string, template: UniversalLoginTemplate) => Promise<void>;
|
|
36726
|
-
getUniversalLoginTemplate: (tenant_id: string) => Promise<UniversalLoginTemplate | null>;
|
|
36727
|
-
deleteUniversalLoginTemplate: (tenant_id: string) => Promise<void>;
|
|
36728
36722
|
}
|
|
36729
36723
|
export interface ListHooksResponse extends Totals {
|
|
36730
36724
|
hooks: Hook[];
|
|
@@ -36891,6 +36885,14 @@ export interface StatsAdapter {
|
|
|
36891
36885
|
*/
|
|
36892
36886
|
getActiveUsers(tenantId: string): Promise<number>;
|
|
36893
36887
|
}
|
|
36888
|
+
export interface UniversalLoginTemplate {
|
|
36889
|
+
body: string;
|
|
36890
|
+
}
|
|
36891
|
+
export interface UniversalLoginTemplatesAdapter {
|
|
36892
|
+
get: (tenant_id: string) => Promise<UniversalLoginTemplate | null>;
|
|
36893
|
+
set: (tenant_id: string, template: UniversalLoginTemplate) => Promise<void>;
|
|
36894
|
+
delete: (tenant_id: string) => Promise<void>;
|
|
36895
|
+
}
|
|
36894
36896
|
/**
|
|
36895
36897
|
* Parameters for cleaning up expired sessions
|
|
36896
36898
|
*/
|
|
@@ -36929,6 +36931,7 @@ export interface DataAdapters {
|
|
|
36929
36931
|
stats?: StatsAdapter;
|
|
36930
36932
|
tenants: TenantsDataAdapter;
|
|
36931
36933
|
themes: ThemesAdapter;
|
|
36934
|
+
universalLoginTemplates: UniversalLoginTemplatesAdapter;
|
|
36932
36935
|
users: UserDataAdapter;
|
|
36933
36936
|
userRoles: UserRolesAdapter;
|
|
36934
36937
|
organizations: OrganizationsAdapter;
|