Skip to main content

Module setup

Module setup 

Source
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§

ClientMetadata
CloudCompanionProject
IneligibleTier
LoadCodeAssistRequest
LoadCodeAssistResponse
OnboardUserRequest
OperationDone
OperationError
OperationResponse
TierMetadata
UserData

Enums§

SetupError

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.