Merge branch 'main' into copilot/fix-mailbox-parameter-editing
This commit is contained in:
@@ -145,6 +145,13 @@ export interface GmailCredential {
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface GmailDebugEmailResponse {
|
||||
message: string;
|
||||
message_id: string | null;
|
||||
thread_id: string | null;
|
||||
label_ids: string[];
|
||||
}
|
||||
|
||||
export interface UserSmtpConfig {
|
||||
id: number;
|
||||
user_id: number;
|
||||
@@ -322,6 +329,12 @@ export const gmailApi = {
|
||||
async disconnect(): Promise<void> {
|
||||
await api.delete('/providers/gmail-credential');
|
||||
},
|
||||
|
||||
/** Inject a debug test email into the user's Gmail inbox. */
|
||||
async sendDebugEmail(): Promise<GmailDebugEmailResponse> {
|
||||
const response = await api.post<GmailDebugEmailResponse>('/providers/gmail/debug-email');
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
|
||||
// ── SMTP Config API ─────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user