feat: add google chat user oauth support
This commit is contained in:
1 parent
820ab8765a
commit
e83e4bf28c
16 files changed
+572
-38
No files matched your search
@@ -60,6 +60,18 @@ export type GoogleChatAccountConfig = {
|
||||
serviceAccount?: string | Record<string, unknown>;
|
||||
/** Service account JSON file path. */
|
||||
serviceAccountFile?: string;
|
||||
/** OAuth client id (user auth). */
|
||||
oauthClientId?: string;
|
||||
/** OAuth client secret (user auth). */
|
||||
oauthClientSecret?: string;
|
||||
/** OAuth redirect URI (user auth). */
|
||||
oauthRedirectUri?: string;
|
||||
/** OAuth client JSON file path (user auth). */
|
||||
oauthClientFile?: string;
|
||||
/** OAuth refresh token (user auth). */
|
||||
oauthRefreshToken?: string;
|
||||
/** OAuth refresh token file path (user auth). */
|
||||
oauthRefreshTokenFile?: string;
|
||||
/** Webhook audience type (app-url or project-number). */
|
||||
audienceType?: "app-url" | "project-number";
|
||||
/** Audience value (app URL or project number). */
|
||||
|
||||
@@ -311,6 +311,12 @@ export const GoogleChatAccountSchema = z
|
||||
groups: z.record(z.string(), GoogleChatGroupSchema.optional()).optional(),
|
||||
serviceAccount: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),
|
||||
serviceAccountFile: z.string().optional(),
|
||||
oauthClientId: z.string().optional(),
|
||||
oauthClientSecret: z.string().optional(),
|
||||
oauthRedirectUri: z.string().optional(),
|
||||
oauthClientFile: z.string().optional(),
|
||||
oauthRefreshToken: z.string().optional(),
|
||||
oauthRefreshTokenFile: z.string().optional(),
|
||||
audienceType: z.enum(["app-url", "project-number"]).optional(),
|
||||
audience: z.string().optional(),
|
||||
webhookPath: z.string().optional(),
|
||||
|
||||
Reference in new issue
Block a user