UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

25 lines (24 loc) 1.37 kB
//#region extensions/google/oauth.shared.ts const CLIENT_ID_KEYS = ["OPENCLAW_GEMINI_OAUTH_CLIENT_ID", "GEMINI_CLI_OAUTH_CLIENT_ID"]; const CLIENT_SECRET_KEYS = ["OPENCLAW_GEMINI_OAUTH_CLIENT_SECRET", "GEMINI_CLI_OAUTH_CLIENT_SECRET"]; const REDIRECT_URI = "http://localhost:8085/oauth2callback"; const AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth"; const TOKEN_URL = "https://oauth2.googleapis.com/token"; const USERINFO_URL = "https://www.googleapis.com/oauth2/v1/userinfo?alt=json"; const CODE_ASSIST_ENDPOINT_PROD = "https://cloudcode-pa.googleapis.com"; const LOAD_CODE_ASSIST_ENDPOINTS = [ CODE_ASSIST_ENDPOINT_PROD, "https://daily-cloudcode-pa.sandbox.googleapis.com", "https://autopush-cloudcode-pa.sandbox.googleapis.com" ]; const DEFAULT_FETCH_TIMEOUT_MS = 1e4; const SCOPES = [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile" ]; const TIER_FREE = "free-tier"; const TIER_LEGACY = "legacy-tier"; const TIER_STANDARD = "standard-tier"; //#endregion export { DEFAULT_FETCH_TIMEOUT_MS as a, SCOPES as c, TIER_STANDARD as d, TOKEN_URL as f, CODE_ASSIST_ENDPOINT_PROD as i, TIER_FREE as l, CLIENT_ID_KEYS as n, LOAD_CODE_ASSIST_ENDPOINTS as o, USERINFO_URL as p, CLIENT_SECRET_KEYS as r, REDIRECT_URI as s, AUTH_URL as t, TIER_LEGACY as u };