Updater
Apps, their configuration and API keys, and the releases published to them.
postConfirm an artifact upload
Completes an upload started with `UploadArtifact`: stores the file under the release's platform directory and records its checksums in the release manifest. The stored file is private unless the release is on a public target. For a binary `<goos>-<goarch>` artifact the service reads the stored bytes back and computes their SHA-256 and SHA-512 itself; if a sent `sha512` or `sha256` does not match, the upload is removed and the call fails. The returned artifact carries the size and checksums as recorded. A published release is `FAILED_PRECONDITION`; an unknown release is `NOT_FOUND`. Pass `part_etags` for a multipart upload. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postConfirm a distribution file upload
Completes the upload and makes it the distribution's file, recording the filename, size and SHA-512 as sent; the service does not re-hash them. Uploading under the filename the entry already has replaces the file in place; a different filename deletes the previous file. Any external `url` is cleared, since the hosted file now wins. Returns the updated distribution. An unknown distribution is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postConfirm a module artifact upload
Completes an upload started with `UploadModuleArtifact`: stores the `.zip` under the module release's platform directory and records its SHA-512 in the release manifest. The stored file is private unless the module release is on a public target. Returns the artifact's platform, filename and SHA-512. A filename that does not end in `.zip` is `INVALID_ARGUMENT`; a published module release is `FAILED_PRECONDITION`; an unknown one is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postCreate an updater-cli key
Creates a Xeonr Auth API key owned by the team, carrying `updater:apps:read` and `updater:releases:edit`, and returns it with its secret (`xk_…`), which is shown only this once. With no `bucket_ids` the key reaches every app the team owns, now and later; otherwise it is bound to those apps, each of which must be the team's (`INVALID_ARGUMENT` otherwise, `NOT_FOUND` for an unknown app). `expires_at` is optional and bounded by the updater application's key policy at Xeonr Auth, whose refusals are passed through. The key is created on behalf of the calling admin, whom Xeonr Auth's audit trail names. A key reaches only the publishing RPCs (config, branch, target and module reads, and creating, updating and publishing releases, module releases, their artifacts and distributions). The caller needs the upl admin role in `owner_team`, else `PERMISSION_DENIED`; a blank name is `INVALID_ARGUMENT`. API keys are refused. A deployment without API keys configured answers `UNAVAILABLE`.
postCreate an app
Creates a upl bucket of the updater's bucket type, owned by `owner_team`, with `slug` as its permanent identifier and DNS label, and returns it as an `App`. `name` is the display name and defaults to the slug; it is written to the app's seeded `/config.json` together with a new signing secret (best effort: the bucket exists even if the seed fails, and `UpdateConfig` can write it later). Bucket administration: the caller's token needs write access and the `upl:bucket:manage` scope, else `PERMISSION_DENIED` (that scope is not yet delegated to the updater's console session); upl-im-api also requires the upl admin role in the owning team. API keys are refused. An empty slug is `INVALID_ARGUMENT`; a deployment with no updater bucket type configured answers `FAILED_PRECONDITION`. upl's refusals (a slug already taken, for one) are passed through.
postCreate a branch
Adds a release branch to the app and returns it with its new `br_` id. Set `disable_semver` for freeform versions (git SHAs, build numbers), which are then ordered by publish time; by default versions must be valid semver. The branch starts with no releases. A name already used by another branch of the app is `ALREADY_EXISTS`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postCreate a distribution
Adds an installer or store listing to the app and returns it with its new `dst_` id. With `url` set it is an external entry: the download endpoint redirects there. Without it the entry is hosted, and gets its binary through `UploadDistributionFile` and `ConfirmDistributionFile`. Empty `target_ids` offers it on every target. A target id that does not exist is `INVALID_ARGUMENT`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postCreate a module
Adds a module definition to the app and returns it with its new `mod_` id. A name already used by another module is `ALREADY_EXISTS`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postCreate a draft module release
Creates a release of a module on a branch and returns it with its new `mrel_` id, always as a draft: upload its `.zip` artifacts, then call `PublishModuleRelease`. `min_base_version` is the lowest base-app version it runs on, and `dependencies` name other modules with optional semver constraints. Refused with `NOT_FOUND` for an unknown module, branch, target or dependency; `INVALID_ARGUMENT` for a version or `min_base_version` that is not semver on a branch that enforces it, a target on another branch, or an invalid constraint; `ALREADY_EXISTS` for a version this module already has on the branch. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postCreate a draft release
Creates a release on a branch and returns it with its new `rel_` id. The release always starts as a draft: upload its artifacts, then call `PublishRelease`. The `draft` field is not read. `git_commit` and `repo_url` let the CLI and the download page link the commit and the changes since the previous release. Refused with `NOT_FOUND` for an unknown branch, target or required module; `INVALID_ARGUMENT` for a version that is not semver on a branch that enforces it, or a target on another branch; `ALREADY_EXISTS` for a version already on the branch. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postCreate a target
Adds a target to a branch and returns it with its new `tgt_` id. A public target is served to anyone; a private one only to callers with an updater token naming it, or with write access. Releases are offered on the targets they are assigned to. An unknown branch is `NOT_FOUND`; a name already used by any target of the app is `ALREADY_EXISTS`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete an app
Deletes the app's bucket with `force`, so its config, branches, releases, artifacts and distributions go with it. This cannot be undone. Afterwards every API key bound to the app is revoked at Xeonr Auth (best effort; a key bound only to a deleted app can no longer reach anything). Bucket administration: the caller's token needs write access and the `upl:bucket:manage` scope, else `PERMISSION_DENIED` (that scope is not yet delegated to the updater's console session); upl-im-api also requires the upl admin role in the owning team. API keys are refused.
postDelete an artifact from a draft release
Deletes one artifact, by platform and filename, from a draft release, along with its checksums in the release manifest. Artifacts of published releases cannot be deleted (`FAILED_PRECONDITION`); an unknown release is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete a branch
Removes an empty branch from the app. A branch that still has releases or targets is refused with `FAILED_PRECONDITION`: delete them first. An unknown branch is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete a distribution
Removes the distribution from the app and deletes its hosted file, if it has one. An unknown distribution is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete an app's logo
Removes the app's logo, so `GetConfig` returns an empty `logo_url`. Deleting an app with no logo succeeds too: failures to delete are ignored and the call always returns an empty response once the caller is allowed. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete a module
Removes a module definition. A module that still has releases on any branch is refused with `FAILED_PRECONDITION`: delete them first. An unknown module is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete an artifact from a draft module release
Deletes one artifact, by platform and filename, from a draft module release, along with its manifest entry. Artifacts of published module releases cannot be deleted (`FAILED_PRECONDITION`); an unknown module release is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete a draft module release
Deletes a draft module release and its uploaded artifacts. Published module releases cannot be deleted (`FAILED_PRECONDITION`): rescind them instead. An unknown one is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete a draft release
Deletes a draft release and its uploaded artifacts. Published releases cannot be deleted (`FAILED_PRECONDITION`): rescind them instead. An unknown release is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postDelete a target
Removes a target from the app. A target still referenced by a release on its branch is refused with `FAILED_PRECONDITION`: move or delete those releases first. An unknown target is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postGet an app's hostnames
Returns every hostname the app answers on, read from its upl bucket's aliases: the slug's own hostname first (`pixel.upl.im` on production, `upl.fyi` elsewhere), then the others in upl's order. Each carries its `kind` (`slug`, `subdomain` or `custom`), whether it is the primary one, and its `status`; a custom domain also carries its verification time, any verification error and the `cname_target` its CNAME must point at. `public_url` is `https://` and the primary hostname, where the download page lives. Needs a signed-in person who can read the bucket in upl; the download page's `client_credentials` token gets `PERMISSION_DENIED`, and so does an API key.
postGet a download URL for any artifact
Returns the stored file's content URL for one artifact of a specific release, by platform and filename. Unlike the public download endpoints, it works for any release, not just the latest, which is how the console downloads older builds. A release that does not exist, or is on no target visible to the caller, and an artifact that does not exist, are `NOT_FOUND`. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An API key is refused with `PERMISSION_DENIED`: this needs a signed-in person.
postGet an app's updater config
Returns the app's updater configuration from its bucket's `/config.json`: display name, every branch, the targets and distributions the caller may see, the login redirect URL, the logo URL (empty when no logo is uploaded), the updater's public base URL and whether the source is public. An app with no config yet returns an empty one. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. `signing_secret` is returned only to a signed-in person with write access, never to an API key or a read-only token. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postGet an app's download statistics
Returns download counts for the app from the download events the updater records in ClickHouse: the total, counts by version, platform and target, and a daily series (UTC days, oldest first). Narrow it with `release_id`, `target`, `platform` and a `from`/`to` time range; every filter is optional. The caller must be able to read the app, as for `GetConfig`. A deployment that records no download events, or a failed query, answers `UNAVAILABLE`. An API key is refused with `PERMISSION_DENIED`: this needs a signed-in person.
postGet a module release and its artifacts
Returns one module release, found on whichever branch holds it, with its dependencies and every artifact uploaded to it. A module release that does not exist, or is on no target visible to the caller, is `NOT_FOUND`. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postGet a release and its artifacts
Returns one release, found on whichever branch holds it, with every artifact uploaded to it (platform, filename, size and checksums). A release that does not exist, or that is on no target visible to the caller, is `NOT_FOUND`. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postGet the caller's updater roles and scopes
Returns the teams on the caller's token, each with its id, slug and the upl roles the caller holds in it (`admin`, `writer`, `reader`), and the scopes the token carries (`upl:uploads:manage` is what writes need, `upl:bucket:manage` what creating and deleting apps need). Needs a signed-in person's token; an API key gets `PERMISSION_DENIED`. A session whose grant cannot be exchanged gets `PERMISSION_DENIED` (sign out and back in), and one the sign-in service cannot answer for gets `UNAVAILABLE`.
postList a team's updater-cli keys
Lists the team's updater API keys as Xeonr Auth holds them: name, description, key prefix, scopes, the apps a bound key is limited to, and expiry, last-use, revocation and creation times. Revoked keys are included only when `include_revoked` is set. The secret is never returned. Every page is fetched server side (up to 4,000 keys), so there is no cursor. The caller must hold a upl role (admin, writer or reader) in `owner_team`, as the signed-in session's teams claim records it, else `PERMISSION_DENIED`. API keys are refused. A deployment without API keys configured answers `UNAVAILABLE`.
postList a team's apps
Lists the upl buckets the team in `owner_team` owns that are Updater apps, read through upl-im-api as the caller, each with its slug, display name, owning team, privacy, creation time, public URL and the bucket type it was created with. Only buckets of the updater's bucket type (`UPDATER_BUCKET_TYPE_ID`) are returned; a deployment with none configured returns every bucket. There is no pagination. Needs a signed-in person's token; the download page's `client_credentials` token gets `PERMISSION_DENIED`, and so does an API key. upl's own refusals (for example, a caller who is not in the team) are passed through.
postList a release's artifacts
Returns the artifacts uploaded to a release, optionally only those of one `platform`, each with its filename, size and the checksums recorded at confirm (SHA-256 for binary `<goos>-<goarch>` artifacts). A release that does not exist, or is on no target visible to the caller, is `NOT_FOUND`. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postList an app's branches
Returns every branch of the app, in the order they were created, with its id, name, creation time and whether it enforces semver. Branches are not filtered by visibility: any caller who can read the app sees them all. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postList an app's distributions
Returns the app's installers and store links that the caller may see. A caller with write access sees all of them. Anyone else sees only public entries, and an entry scoped to targets only when one of those targets is visible to them (a public target, or a private one named in their `X-Updater-Token`). An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postList a module release's artifacts
Returns the artifacts uploaded to a module release, optionally only those of one `platform` (`darwin`, `win32`, `linux` or `universal`), with filename, size and SHA-512. A module release that does not exist, or is on no target visible to the caller, is `NOT_FOUND`. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postList a branch's module releases
Returns the module releases on `branch_id` in the order they were created, optionally only those of `module_id` or assigned to `target_id`. Drafts are included only when `include_drafts` is set and the caller has write access. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postList an app's modules
Returns every module definition of the app (id, name, description, creation time). Modules are add-ons released separately from the base app; their releases are listed with `ListModuleReleases`. Not filtered by visibility. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postList a branch's releases
Returns the releases of `branch_id`, newest first by creation time, optionally only those assigned to `target_id`. Drafts are included only when `include_drafts` is set and the caller has write access. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. There is no pagination. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postList an app's targets
Returns the app's targets (release channels on a branch), optionally only those of `branch_id`, in creation order. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postPublish a draft module release
Publishes a draft module release: sets `published_at` and clears the update-check cache, so module checks offer it at once. One already published, or with no artifacts, is refused with `FAILED_PRECONDITION`; an unknown one is `NOT_FOUND`. Returns the published module release. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postPublish a draft release
Publishes a draft: sets `published_at` and clears the update-check cache, so the release is offered on its targets on the next update check. A release that is already published, or has no artifacts, is refused with `FAILED_PRECONDITION`; an unknown release is `NOT_FOUND`. Returns the published release. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postRe-verify an app's custom domains
Asks upl to re-verify every custom domain of the app now, instead of waiting for its periodic check, and returns the hostnames with their status afterwards, as `GetAppDomains` does. Useful right after a CNAME record is created. Bucket administration: the caller's token needs write access and the `upl:bucket:manage` scope, else `PERMISSION_DENIED` (that scope is not yet delegated to the updater's console session); upl-im-api also requires the upl admin role in the owning team. API keys are refused.
postRescind a published module release
Marks a published module release as rescinded, so module update checks and downloads stop offering it, and clears the update-check cache. There is no RPC to undo it. A draft is refused with `FAILED_PRECONDITION` (delete it instead), as is one already rescinded; an unknown one is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postRescind a published release
Marks a published release as rescinded: update checks and downloads stop offering it, and clients resolve to the newest release that remains. It is still listed, flagged as rescinded. There is no RPC to undo it. A draft is refused with `FAILED_PRECONDITION` (delete it instead), as is a release already rescinded; an unknown release is `NOT_FOUND`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postRevoke an updater-cli key
Revokes one of the team's updater API keys at Xeonr Auth, on behalf of the caller; the key stops authenticating at once. A key that does not exist, or belongs to another team, is `NOT_FOUND`. The caller needs the upl admin role in `owner_team`, else `PERMISSION_DENIED`. API keys are refused. A deployment without API keys configured answers `UNAVAILABLE`.
postRotate an app's signing secret
Generates a new random signing secret for the app (32 bytes, hex encoded), saves it and returns it. Every updater token signed with the old secret stops validating immediately, so end users holding one lose access to private targets until they sign in again. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postSearch for a CI publisher
Lists Forge repositories and groups visible to the signed-in administrator of this app.
postReplace an app's hostnames
Replaces the app's hostnames with `hostnames` and sets `primary_hostname` as the primary, then returns the resulting list as `GetAppDomains` does. The slug's own hostname is always kept, whatever is sent; an upl.im name may be given whole (`downloads.upl.im`) or as its label (`downloads`), and duplicates are dropped. A custom domain is live once its CNAME to `cname_target` verifies; until then its status is `pending`. A `primary_hostname` that is not among the app's hostnames is `INVALID_ARGUMENT`; upl refuses an unverified custom domain as primary. Bucket administration: the caller's token needs write access and the `upl:bucket:manage` scope, else `PERMISSION_DENIED` (that scope is not yet delegated to the updater's console session); upl-im-api also requires the upl admin role in the owning team. API keys are refused.
postSet the repositories an app is published from
Replaces the forge repositories whose CI may publish releases to the app with a workload token (a CI step's own identity, exchanged at Xeonr Auth) instead of a stored API key, and returns the list as stored. A workload needs an exact repository grant or membership beneath a granted group path. The repository team must own the app. Empty grants (the default) admit no workload; API keys are unaffected. Repositories are forge paths, `group/project` or deeper (`xeonr/burrow/cli`); they are trimmed, lower-cased and de-duplicated. The same call sets what a workload may publish: `tag_prefix` (a release version is the run's tag with it stripped; empty is `v`), `packages` (the step packages that may publish; empty is `updater/publish` and `ci/updater-publish`) and `prerelease_branch_ids` (the only branches that take a version with a pre-release part from CI). The principals field replaces both kinds of grant. Older callers that send repository paths preserve the existing group grants. The response, and `GetConfig` to a caller who reads the app in full, carry them as `publishing`, with Forge IDs resolved as the signed-in app administrator. Only a signed-in person with write access to the app may call this: an API key, a CI workload and another product acting for a person (the caller exchange) get `PERMISSION_DENIED`.
postRename a branch or change its versioning
Renames the branch and, when `disable_semver` is set, switches semver enforcement on or off; leaving `disable_semver` unset keeps the current setting. The update-check cache is cleared, so the new ordering applies to the next check. Returns the updated branch. An unknown branch is `NOT_FOUND`; a name used by another branch is `ALREADY_EXISTS`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postUpdate an app's updater config
Replaces the app's display name, login redirect URL and `public_source` flag; all three are written as sent, so send the current values of the ones you are not changing. Branches, targets, modules and distributions are left alone. On an app with no config yet, this first save also generates its signing secret. The response is empty. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key. A config that cannot be read is an error, never replaced with a blank one.
postUpdate a distribution
Changes only the fields that are set: `label`, `platform`, `version`, `public` and `url` when present, and `target_ids` only when `set_target_ids` is true (an empty list then offers the entry on every target). Setting a non-empty `url` on a hosted entry deletes its uploaded file and turns it into an external one. Returns the updated distribution. An unknown distribution is `NOT_FOUND`; an unknown target id is `INVALID_ARGUMENT`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postUpdate a module
Replaces the module's name and description (both are written as sent) and returns the updated module. An unknown module is `NOT_FOUND`; a name used by another module is `ALREADY_EXISTS`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postUpdate a module release's targets or notes
Changes the targets a module release is offered on and its notes. `target_ids` replaces the list when non-empty and is ignored when empty; `notes` is always written as sent. When the targets change, the artifacts' storage privacy follows: private unless one of the targets is public. Returns the updated module release. A rescinded module release is `FAILED_PRECONDITION`; an unknown one is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postUpdate a release's targets or notes
Changes the targets a release is offered on and its notes, on drafts and published releases alike; the version cannot change. `target_ids` replaces the list when it is non-empty and is ignored when empty, while `notes` is always written as sent, so send the current notes to keep them. When the targets change, the artifacts' storage privacy follows: private unless one of the targets is public. Returns the updated release. A rescinded release is `FAILED_PRECONDITION`; an unknown release or target is `NOT_FOUND`; a target on another branch is `INVALID_ARGUMENT`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postUpdate a target
Replaces the target's name and `public` flag (both are written as sent) and returns the updated target. The target stays on its branch. An unknown target is `NOT_FOUND`; a name used by another target is `ALREADY_EXISTS`. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postStart an artifact upload
Requests an upload slot from upl for one file of a draft release and returns its `upload_request_id` with either multipart `parts` (each with its own presigned URL, uploadable in parallel) or a single `upload_url`. PUT the bytes, then call `ConfirmArtifact`; nothing is recorded on the release until then. `platform` must be an electron id (`darwin`, `win32`, `win32-squirrel`, `linux`, `universal`) or a binary `<goos>-<goarch>` id such as `linux-amd64`, else `INVALID_ARGUMENT`; one release holds one family only, so mixing them is `FAILED_PRECONDITION`, as is uploading to a published release. An unknown release is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postStart a distribution file upload
Requests an upload slot from upl for a hosted distribution's binary and returns its `upload_request_id` with either a list of multipart `parts` (each with its own presigned URL) or a single `upload_url`. PUT the bytes, then call `ConfirmDistributionFile` with the request id and the parts' ETags. Nothing changes on the distribution until the confirm. An unknown distribution is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
postStart a logo upload
Returns a signed intent token for the app's logo. Upload the image with it directly through upl-im-api's `RequestSignedUpload` and `CompleteSignedUpload`; once stored, `GetConfig` reports the logo's URL. Nothing is stored by this call itself. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key.
postStart a module artifact upload
Requests an upload slot from upl for one `.zip` of a draft module release and returns its `upload_request_id` with either multipart `parts` (each with its own presigned URL) or a single `upload_url`. PUT the bytes, then call `ConfirmModuleArtifact` with the parts' ETags. A filename that does not end in `.zip` is `INVALID_ARGUMENT`; a published module release is `FAILED_PRECONDITION`; an unknown one is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
Self-update from Go
Give a Go CLI an upgrade command and a once-a-day update banner that read its channel on the Updater, with checksums, rollback for daemons, and an offline test server.
Confirm an artifact upload POST
Completes an upload started with `UploadArtifact`: stores the file under the release's platform directory and records its checksums in the release manifest. The stored file is private unless the release is on a public target. For a binary `<goos>-<goarch>` artifact the service reads the stored bytes back and computes their SHA-256 and SHA-512 itself; if a sent `sha512` or `sha256` does not match, the upload is removed and the call fails. The returned artifact carries the size and checksums as recorded. A published release is `FAILED_PRECONDITION`; an unknown release is `NOT_FOUND`. Pass `part_etags` for a multipart upload. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.