Expand description
Google Gemini Code Assist project setup: bounded loadCodeAssist and
onboardUser/operations polling via the broker proxy.
Experimental. cloudcode-pa.googleapis.com/v1internal is a
product-client-observed integration surface and is not documented as a
stable public third-party API; see docs/specs/google-gemini-oauth-spec.md.
This module never touches secrets or the network directly — it composes
typed ProxyRequest values through a CredentialBroker, so all upstream
egress goes through the broker’s pinned host + path allowlist + timeouts +
body caps. Validation links returned by loadCodeAssist are surfaced to
the caller but never automatically followed.
Structs§
- Client
Metadata - Cloud
Companion Project - Ineligible
Tier - Load
Code Assist Request - Load
Code Assist Response - Onboard
User Request - Operation
Done - Operation
Error - Operation
Response - Tier
Metadata - User
Data
Enums§
Constants§
- ONBOARDING_
MAX_ ATTEMPTS - Bounded onboarding polling budget. The reference client polls every 5s indefinitely; we cap the total wait so tests and production never spin.
- ONBOARDING_
POLL_ INTERVAL
Functions§
- get_
operation - load_
code_ assist - onboard_
user - setup_
user - Resolve the user’s Code Assist project id and tier through the broker.
- setup_
user_ with_ sleeper - Same as
setup_user, but the caller injects a sleeper (test seam). The polling loop is bounded by ONBOARDING_MAX_ATTEMPTS regardless.