mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 10:13:11 +02:00
docs: include public agent identity in OpenAPI
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
a2663b3e7f
commit
aa69c14e0b
1 file changed
+19
@@ -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}",
|
||||
|
||||
Reference in new issue
Block a user