Config: add secret ref schema and redaction foundations

This commit is contained in:
joshavant
2026-02-21 10:55:17 -08:00
committed by Peter Steinberger
parent 6daf40d3f4
commit c3a4251a60
12 changed files with 253 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import type {
ReplyToMode,
} from "./types.base.js";
import type { DmConfig } from "./types.messages.js";
import type { SecretRef } from "./types.secrets.js";
export type GoogleChatDmConfig = {
/** If false, ignore all incoming Google Chat DMs. Default: true. */
@@ -63,8 +64,10 @@ export type GoogleChatAccountConfig = {
defaultTo?: string;
/** Per-space configuration keyed by space id or name. */
groups?: Record<string, GoogleChatGroupConfig>;
/** Service account JSON (inline string or object). */
serviceAccount?: string | Record<string, unknown>;
/** Service account JSON (inline string, object, or secret reference). */
serviceAccount?: string | Record<string, unknown> | SecretRef;
/** Explicit secret reference for service account JSON. */
serviceAccountRef?: SecretRef;
/** Service account JSON file path. */
serviceAccountFile?: string;
/** Webhook audience type (app-url or project-number). */