feat: add gog oauth reuse for google chat

This commit is contained in:
iHildy committed 2026-01-26 17:21:09 -06:00
1 parent e83e4bf28c
commit e4591ca120
13 files changed
+304 -13

No files matched your search

+6
View File
@@ -72,6 +72,12 @@ export type GoogleChatAccountConfig = {
oauthRefreshToken?: string;
/** OAuth refresh token file path (user auth). */
oauthRefreshTokenFile?: string;
/** Reuse gog OAuth credentials (user auth). */
oauthFromGog?: boolean;
/** gog account email to match refresh token (optional). */
gogAccount?: string;
/** gog client name to match credentials file (optional). */
gogClient?: string;
/** Webhook audience type (app-url or project-number). */
audienceType?: "app-url" | "project-number";
/** Audience value (app URL or project number). */
+3
View File
@@ -317,6 +317,9 @@ export const GoogleChatAccountSchema = z
oauthClientFile: z.string().optional(),
oauthRefreshToken: z.string().optional(),
oauthRefreshTokenFile: z.string().optional(),
oauthFromGog: z.boolean().optional(),
gogAccount: z.string().optional(),
gogClient: z.string().optional(),
audienceType: z.enum(["app-url", "project-number"]).optional(),
audience: z.string().optional(),
webhookPath: z.string().optional(),