Get 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.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
Response Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/GetUpdaterMe" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"teams": [
"map[id:urn:xeonr:auth:team:8e5c roles:[admin] slug:platform-core]"
],
"scopes": [
"upl:uploads:manage",
"upl:bucket:manage"
]
}Get a release and its artifacts POST
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`.
List a team's updater-cli keys POST
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`.