Skip to main content

Module api_client

Module api_client 

Source

Structs§

AgentInstructionsResponse
Response shape for the policies/agent-instructions endpoint.
ApiClient
CheckPoliciesRequest
CheckPoliciesResponse
CheckResultItem
CiPolicyResult
CiVerifyRequest
CiVerifyResponse
CommitVerifyResult
DeviceAuthResponse
DeviceStatusResponse
MeResponse
OrgMembership
One org the authenticated credential belongs to. org_name is the org slug (orgs.name server-side) used in URL paths; display_name is the human label. Wire shape of GET /api/v1/me/orgs.
ProjectDetail
Full detail for a project. Server sends more fields; only repos is consumed today.
ProjectListItem
One project in GET /api/v1/orgs/{org}/projects. Server sends more fields; only these two are consumed today.
ProjectRepoRef
A repo linked to a project (member of ProjectDetail::repos).
RegisterRepoRequest
RegisterRepoResponse
RemoteDetail
RemoteRepoRef
RepoListItem
ResolveRemoteResponse
SessionCheckData

Enums§

GetMeError
ResolveProjectOutcome
Outcome of ApiClient::resolve_project, distinguishing “no project” (404) from “ambiguous, multiple candidates” (409) — unlike resolve_remote, which only distinguishes found/not-found.

Functions§

resolve_credentials
Resolve server URL and auth token from multiple sources. Priority: env var > credentials file > project config.toml Returns (server_url, auth_token).