Reference
Registry API
The pluginRegistry namespace of the server's typed RPC. Every procedure needs a signed-in session and acts in the selected Space.
Procedures
| Procedure | Input | Result |
|---|---|---|
submit | { slug, version, manifest } | The version, status pending |
mine | { after?, limit? } | Your versions, any status |
submissions | { status?, after?, limit? } | Review queue; status defaults to pending. Admins only |
review | { versionId, decision: "approved" } or { versionId, decision: "rejected", reason } | The decided version. Admins only |
discover | { slug?, query?, after?, limit? } | Approved versions. Search by name, ID or description. |
install | { versionId } | The installation, pinned to that version |
switchVersion | { installationId, expectedVersionId, versionId } | Same installation with a new approved version and zero grants. |
installations | { after?, limit? } | Your installations in the Space |
setGrants | { installationId, botId, partIds } | The installation with its current grants |
uninstall | { installationId } | { ok: true }. Deletes the entries of any record app |
appRecords | { installationId, partId, date?, after?, limit? } | { items, nextAfter, total }, newest first |
addAppRecord | { installationId, partId, operationId, values } | The saved entry |
removeAppRecord | { installationId, partId, recordId } | { ok: true } |
Objects
version
{
"id": "…",
"slug": "release-notes",
"version": 1,
"manifest": { "schemaVersion": 1, … },
"status": "pending",
"reason": null,
"createdAt": "2026-11-19T10:00:00.000Z",
"reviewedAt": null
}
installation
{
"id": "…",
"plugin": { "id": "…", "slug": "release-notes", "version": 1, … },
"grants": [ { "botId": "…", "partId": "summary" } ],
"createdAt": "2026-11-19T10:05:00.000Z"
}
record page
{
"items": [
{
"id": "0b6f…",
"values": { "date": "2026-11-20", "meal": "Porridge", "kcal": 480 },
"createdAt": "2026-11-20T08:10:00.000Z"
}
],
"nextAfter": null,
"total": 480
}
Paging
List procedures take limit from 1 to 50 (default 20) and an opaque after cursor, and return { items, nextAfter }. nextAfter is null on the last page.
Rules
slugand part ids: 1 to 64 characters matching^[a-z0-9]+(?:-[a-z0-9]+)*$.version: a whole number from 1.- The first submission reserves a slug for its publisher. Rejected versions keep it reserved. Each new version is a separate submission and review.
- A version is decided once. Rejecting needs a
reasonof 1 to 2,000 characters. - Installing the same version again returns the existing installation. To change versions, pass its current
plugin.idasexpectedVersionIdtoswitchVersion. A successful switch clears old grants. Repeating a completed switch preserves any new grants. On a conflict, read the current installation before retrying. - New installations have no grants.
setGrantsreplaces one bot's parts; an emptypartIdsrevokes them.uninstallremoves every grant at once. - The registry never contacts tool servers or runs anything from a manifest.
Record app entries
- These procedures act on your own installation in the selected Space. Other members can't read or change its entries.
appRecordspages with an entry id asafter. Keep the samedatewhen followingnextAfter.datematches the part's first date field and is refused when the part has none.totalsums thesummaryFieldover every entry that matches, not only the returned page. It is0when nothing matches andnullwhen the part has nosummaryField.valuesmust name only declared fields, include every required one and match each field's type. See the record app part.- Generate a new UUID as
operationIdfor each entry and reuse it when retrying. The same id with the same values returns the saved entry. The same id with other values, or after that entry was removed, is a conflict. - There is no update. Remove the entry and add a corrected one. Removal erases its values. Removing an entry that is already gone still returns
{ ok: true }. - Each version of an installation keeps its own entries.
uninstalldeletes the entries of every version.
Errors
| Status | When |
|---|---|
| 401 | No session, or it expired. Sign in again. |
| 403 | review or submissions from an account that isn't a deployment admin. |
| 400 | The input or manifest doesn't match the schema, or an entry's values don't match the app's fields. |
| 404 | The installation or record app part isn't yours in the selected Space. |
| 409 | A slug or version already reserved, a version already reviewed, a stale expectedVersionId, or an operationId reused with other values or after its entry was removed. |
Every message, with its fix, is in Errors and fixes. The exact schemas live in packages/contracts/src/integrations/plugin-registry.ts in the repository.