Expand description
Types used as operation parameters and responses.
Modules§
- error
- Error types.
Structs§
- Accept
Invite Request AcceptInviteRequest- Access
Request Request - Requests access to Harmont. Records a sign-up attempt and notifies admins. Rate-limited per client IP.
- ApiToken
- A personal API key. The secret is returned only once, at creation.
- ApiToken
Create Request - Creates a personal API key.
- ApiToken
Create Response - The created key and its raw secret. The secret is shown only here, once.
- ApiToken
List Response - Every personal API key belonging to the current user.
- Auth
Github Request - GitHub OAuth callback payload from the SPA.
- Auth
Google Request - Google OAuth callback payload from the SPA.
- Auth
Token Response - A freshly minted session bearer token and the authenticated user.
- Balance
Response - The organization’s current balance — the sum of every ledger entry (credits positive, debits negative). May be negative.
- Build
- One run of a pipeline, identified by its pipeline-scoped number.
- Build
List - A page of a pipeline’s builds (newest first), with an opaque cursor.
- Checkout
Request - Starts a Stripe Checkout Session crediting the organization identified
by the path (
:org). The body carries only the top-up amount in cents. - Checkout
Response - The hosted Stripe Checkout URL. Redirect the customer here to complete the top-up; on success Stripe fires a webhook that posts the matching credit.
- CliClaim
Request - The CLI polls with its nonce to claim the session token the SPA transferred.
- CliCode
Response - A short, human-typeable code the user re-types into the CLI.
- CliRedeem
Request - The CLI redeems a paste code the user typed in, receiving the session token.
- CliToken
Response - The raw session bearer token handed to the CLI.
- CliTransfer
Request - The SPA hands a fresh session token to a locally-running CLI that
generated
nonceand is polling the claim endpoint. - Connect
Installation Request - Binds an existing GitHub App installation (identified by its GitHub numeric installation id) to this organization.
- Create
Build Request - Creates a build for a pipeline. Two paths: supply pre-rendered v0 IR
JSON in
pipeline_ir(thehm run/ API path), or omitpipeline_irto have the engine render the registered pipeline’s IR in a sandbox VM (decision #5 — rendering never happens on the API host). The IR is then parsed and planned in-process; on a plan/render rejection the build row is created with its error fields set and the request returns 422. - Create
Invite Request CreateInviteRequest- Create
Organization Request - Create a new organization owned by the authenticated user.
- Create
Organization Request Name - Display name. The slug is derived from this.
- Create
Pipeline Request - Creates a pipeline within an organization. The slug is derived from the name; a slug collision within the organization is rejected.
- Current
User Response - The authenticated Harmont user and their personal-org slug.
- Error
- The Harmont error envelope.
- Error
Error ErrorError- Github
Installation - A GitHub App installation the organization has connected. The numeric
installation_idis GitHub’s installation id (used to address sync/unbind), whileidis Harmont’s internal row id. - Github
Installation List - The organization’s connected GitHub App installations.
- Github
Repo - A repository Harmont mirrors from a connected GitHub installation.
installation_idis Harmont’s internal installation row id (FK), not GitHub’s installation id. - Github
Repo List - Mirrored repositories for an installation or across an organization.
- Invite
Invite- Invite
List InviteList- Job
- One job (DAG node) of a build.
- JobList
- A build’s jobs, in DAG creation order.
- LogToken
Response - A build-scoped HMAC token the SSE log stream accepts, plus its expiry.
Pass the token as the
tokenquery parameter when opening the log stream. - OrgMember
OrgMember- OrgMember
List OrgMemberList- Organization
- A Harmont organization the authenticated user is a member of.
- Organization
List - A page of the current user’s organizations, with an opaque cursor.
- Passkey
- A WebAuthn credential registered to the current user.
- Passkey
Challenge Response - The server-side challenge id (correlate it on finalize) and the PublicKeyCredential*Options the browser WebAuthn API consumes.
- Passkey
List Response - Every passkey registered to the current user.
- Passkey
Login Finalize Request - Completes passkey login by submitting the assertion for the challenge.
- Passkey
Login Options Request - Starts a discoverable-credential (passkey) login. No fields required.
- Passkey
Register Finalize Request - Completes adding a passkey by submitting the attestation for the challenge.
- Passkey
Register Options Response - WebAuthn credential-creation options for adding a passkey to the current
user, plus the server-side challenge id to echo back on finalize.
excludeCredentialslists the user’s already-registered authenticators. - Passkey
Signup Begin Request - Starts passkey sign-up: runs the access gate and emails a verification link.
- Passkey
Signup Finalize Request - Completes passkey sign-up by submitting the attestation for the challenge.
- Passkey
Signup Options Request - Exchanges a verification token for WebAuthn credential-creation options.
- Ping
Response PingResponse- Pipeline
- A repeatable CI workflow belonging to an organization.
- Pipeline
List - A page of an organization’s pipelines, with an opaque cursor.
- Recover
Begin Request - Starts magic-link account recovery. Always 204 (never leaks account existence).
- Recover
Finalize Request - Completes recovery: consumes the magic-link token + challenge, registers a new passkey, and mints a session token.
- Recover
Options Request - Validates a magic-link token (without consuming it) and returns WebAuthn credential-creation options to enroll a fresh passkey.
- Redeem
Coupon Request - Redeems a coupon for the organization identified by the path. The org is
taken from the route (
:org); the body carries only the coupon code. - Redeem
Coupon Response - The credit granted by the coupon and the organization’s resulting balance, both in cents.
- Stripe
Webhook Response - Acknowledges that a Stripe webhook event verified and was recorded (idempotently). Returned for any verified event — handled or not — so Stripe stops retrying.
- Token
Response - A freshly minted session bearer token.
- Transaction
- One append-only ledger entry — a credit (positive) or debit (negative).
- Transaction
List - A page of an organization’s ledger entries (newest first), with an opaque cursor.
- Update
Member Role Request UpdateMemberRoleRequest- Usage
Breakdown Build - All VM usage attributed to one build, rolled up and broken down per job.
- Usage
Breakdown Job - A single job’s VM lease: the VM that ran it, its shape, how long it ran, and what it cost.
- Usage
Breakdown Response - An organization’s VM usage over a window, grouped by build (newest first).
- Usage
Response - Aggregated VM-lease usage for an organization over the requested
[from, to)window: resource-seconds per dimension and the total billed cost in cents. - Usage
Series Bucket UsageSeriesBucket- Usage
Series Response UsageSeriesResponse- User
- The authenticated Harmont user.
- User
Update Request - Updates the current user’s editable profile fields.
- User
Update Request Name - New display name.
Enums§
- Build
State - The rolled-up build state.
- Create
Invite Request Role CreateInviteRequestRole- Invite
Role InviteRole- JobState
- The job’s FSM state.
- OrgMember
Role OrgMemberRole- Pipeline
Visibility - Whether the pipeline is private or public.
- Stripe
Webhook Response Status - Always
"ok"on a verified, recorded event. - Transaction
Source - What produced the entry.
- Update
Member Role Request Role UpdateMemberRoleRequestRole