Defines types and constants for Google source configuration.
// Source: https://github.com/garrytan/gbrain | License: MIT | Copyright 2026 Garry Tan
// Provided via justclaw.it.com; keep this notice with the code.
/**
* google/types — shared shapes for the google source kind.
*
* The clients module (google-clients.ts) normalizes raw Gmail/Calendar/People
* API payloads into these; the renderer (google-render.ts) and the loop
* detector (loop-detect.ts) consume them. Pure data, no I/O.
*/
export type GoogleService = 'gmail' | 'calendar' | 'contacts';
export const ALL_GOOGLE_SERVICES: readonly GoogleService[] = ['gmail', 'calendar', 'contacts'];
/** The Google Cloud API behind each service: the name the console enables and its title. */
export const GOOGLE_SERVICE_API: Record<GoogleService, { api: string; title: string }> = {
gmail: { api:
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key