@authhero/adapter-interfaces 0.150.0 → 0.151.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 +26 -0
- package/package.json +1 -1
|
@@ -48024,6 +48024,30 @@ export interface CustomTextAdapter {
|
|
|
48024
48024
|
language: string;
|
|
48025
48025
|
}>>;
|
|
48026
48026
|
}
|
|
48027
|
+
export interface EmailServiceSendParams {
|
|
48028
|
+
emailProvider: EmailProvider;
|
|
48029
|
+
to: string;
|
|
48030
|
+
from: string;
|
|
48031
|
+
subject: string;
|
|
48032
|
+
html?: string;
|
|
48033
|
+
text?: string;
|
|
48034
|
+
template: string;
|
|
48035
|
+
data: Record<string, string>;
|
|
48036
|
+
}
|
|
48037
|
+
export interface EmailServiceAdapter {
|
|
48038
|
+
send(params: EmailServiceSendParams): Promise<void>;
|
|
48039
|
+
}
|
|
48040
|
+
export interface SmsServiceSendParams {
|
|
48041
|
+
to: string;
|
|
48042
|
+
from?: string;
|
|
48043
|
+
text: string;
|
|
48044
|
+
template: string;
|
|
48045
|
+
options: Record<string, unknown>;
|
|
48046
|
+
data: Record<string, string>;
|
|
48047
|
+
}
|
|
48048
|
+
export interface SmsServiceAdapter {
|
|
48049
|
+
send(params: SmsServiceSendParams): Promise<void>;
|
|
48050
|
+
}
|
|
48027
48051
|
/**
|
|
48028
48052
|
* Parameters for cleaning up expired sessions
|
|
48029
48053
|
*/
|
|
@@ -48069,6 +48093,8 @@ export interface DataAdapters {
|
|
|
48069
48093
|
organizations: OrganizationsAdapter;
|
|
48070
48094
|
authenticationMethods: AuthenticationMethodsAdapter;
|
|
48071
48095
|
userOrganizations: UserOrganizationsAdapter;
|
|
48096
|
+
emailService?: EmailServiceAdapter;
|
|
48097
|
+
smsService?: SmsServiceAdapter;
|
|
48072
48098
|
/**
|
|
48073
48099
|
* Optional session cleanup function.
|
|
48074
48100
|
* Cleans up expired login_sessions, sessions, and refresh_tokens.
|