docs: include public agent identity in OpenAPI

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-06 12:40:16 -05:00
1 parent a2663b3e7f
commit aa69c14e0b
1 file changed
+19
+19
View File
@@ -3454,6 +3454,25 @@ registry.registerPath({
responses: { 200: r.ok(), 401: r.unauthorized, 404: r.notFound },
});
registry.registerPath({
method: "get",
path: "/api/agents/{id}/identity",
tags: ["agents"],
summary: "Get an agent's public cryptographic identity, or null before provisioning",
request: { params: z.object({ id: z.string() }) },
responses: {
200: r.ok(z.object({
algorithm: z.literal("Ed25519"),
keyId: z.string(),
publicKeyPem: z.string(),
createdAt: z.string().datetime(),
}).nullable()),
401: r.unauthorized,
403: r.forbidden,
404: r.notFound,
},
});
registry.registerPath({
method: "patch",
path: "/api/agents/{id}",