{"openapi":"3.1.0","info":{"title":"Ren API","version":"0.0.0","description":"Ren HTTP API."},"paths":{"/health":{"get":{"tags":["health"],"operationId":"health.get","parameters":[],"security":[],"responses":{"200":{"description":"Health.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health.Info"}}}}},"description":"Return the server status and version.","summary":"Get server health"}},"/me":{"get":{"tags":["me"],"operationId":"me.get","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Auth.Me","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Auth.Me"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}}},"description":"Return the signed-in user and their active organization, or `null` if they have none yet (for example, while an invitation is pending).","summary":"Get the signed-in user"}},"/me/deletion":{"post":{"tags":["me"],"operationId":"me.requestDeletion","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive the signed-in user’s account, sign them out everywhere and email them that Ren received the request. The account cannot sign in again, and Ren deletes its data within 7 days. Asking again sends no second email. Fails with a conflict while the user is the only owner of an organization that has other members.","summary":"Request deletion of the signed-in account"}},"/invitations/{id}/preview":{"get":{"tags":["invitation"],"operationId":"invitation.preview","parameters":[{"name":"id","in":"path","schema":{"type":"string","minLength":1,"maxLength":128},"required":true}],"security":[],"responses":{"200":{"description":"Invitation.Preview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation.Preview"}}}}},"description":"Return the state of an invitation link with its organization and inviter, without signing in. Unknown invitations return the `invalid` state.","summary":"Preview an organization invitation"}},"/spaces":{"get":{"tags":["space"],"operationId":"space.list","parameters":[{"name":"joined","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"kind","in":"query","schema":{"$ref":"#/components/schemas/Space.Kind"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Space.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the spaces that the caller can see.","summary":"List spaces"},"post":{"tags":["space"],"operationId":"space.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Space.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one space.","summary":"Create space","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.CreateInput"}}},"required":true}}},"/spaces/{idOrSlug}":{"get":{"tags":["space"],"operationId":"space.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The space’s ID or slug."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Space.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one space by ID or slug.","summary":"Get space"}},"/spaces/{id}":{"patch":{"tags":["space"],"operationId":"space.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Space.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one space.","summary":"Update space","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.UpdateInput"}}},"required":true}},"delete":{"tags":["space"],"operationId":"space.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Space.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one space and return it. Archiving an archived space returns it unchanged.","summary":"Archive space"}},"/spaces/{id}/shutdown":{"post":{"tags":["space"],"operationId":"space.shutdown","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Space.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the shutdown action on one space.","summary":"shutdown space","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Space.ShutdownInput"}}},"required":true}}},"/space-members":{"get":{"tags":["space-member"],"operationId":"space-member.list","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID"},"required":false},{"name":"userId","in":"query","schema":{"$ref":"#/components/schemas/Auth.UserID"},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/SpaceMember.Status"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceMember.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceMember.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the space-members that the caller can see.","summary":"List space-members"},"post":{"tags":["space-member"],"operationId":"space-member.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceMember.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceMember.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one space-member.","summary":"Create space-member","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceMember.CreateInput"}}},"required":true}}},"/space-members/{id}":{"delete":{"tags":["space-member"],"operationId":"space-member.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/SpaceMember.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceMember.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceMember.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one space-member and return it. Archiving an archived space-member returns it unchanged.","summary":"Archive space-member"}},"/space-join-requests":{"get":{"tags":["space-join-request"],"operationId":"space-join-request.list","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"The space whose requests to list; its members only. Without it, the caller’s own requests."},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/SpaceJoinRequest.Status"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceJoinRequest.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the space-join-requests that the caller can see.","summary":"List space-join-requests"},"post":{"tags":["space-join-request"],"operationId":"space-join-request.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceJoinRequest.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one space-join-request.","summary":"Create space-join-request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.CreateInput"}}},"required":true}}},"/space-join-requests/{id}/approve":{"post":{"tags":["space-join-request"],"operationId":"space-join-request.approve","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.JoinRequestID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceJoinRequest.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the approve action on one space-join-request.","summary":"approve space-join-request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.DecisionInput"}}},"required":true}}},"/space-join-requests/{id}/decline":{"post":{"tags":["space-join-request"],"operationId":"space-join-request.decline","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.JoinRequestID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceJoinRequest.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the decline action on one space-join-request.","summary":"decline space-join-request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.DecisionInput"}}},"required":true}}},"/space-join-requests/{id}/cancel":{"post":{"tags":["space-join-request"],"operationId":"space-join-request.cancel","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.JoinRequestID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceJoinRequest.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the cancel action on one space-join-request.","summary":"cancel space-join-request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceJoinRequest.DecisionInput"}}},"required":true}}},"/spaces/{id}/invite-link":{"get":{"tags":["space-invite-link"],"operationId":"space-invite-link.get","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceInviteLink.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceInviteLink.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the space’s invite link and make it the first time. Anyone in the organization who opens the link joins the space. Only members of a shared space can read it.","summary":"Get a space’s invite link"}},"/spaces/{id}/invite-link/reset":{"post":{"tags":["space-invite-link"],"operationId":"space-invite-link.reset","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceInviteLink.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceInviteLink.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Stop the space’s current invite link and return a new one. The old link no longer works.","summary":"Reset a space’s invite link"}},"/join-links/{token}/preview":{"get":{"tags":["join-link"],"operationId":"join-link.preview","parameters":[{"name":"token","in":"path","schema":{"$ref":"#/components/schemas/SpaceInviteLink.Token_1"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceInviteLink.Preview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceInviteLink.Preview"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}}},"description":"Return what the signed-in person sees when they open an invite link: whether they can join, are already in the space, or are outside its organization. Unknown and reset links return the `invalid` state.","summary":"Preview a space invite link"}},"/join-links/{token}/accept":{"post":{"tags":["join-link"],"operationId":"join-link.accept","parameters":[{"name":"token","in":"path","schema":{"$ref":"#/components/schemas/SpaceInviteLink.Token_1"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceInviteLink.Joined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceInviteLink.Joined"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Add the signed-in person to the link’s space. Only people already in the space’s organization can join; anyone else gets a `ForbiddenError`. A person already in the space joins nothing and counts no use.","summary":"Join a space with its invite link"}},"/organization-invite-links":{"post":{"tags":["organization-invite-link"],"operationId":"organization-invite-link.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"OrganizationInviteLink.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInviteLink.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Make a link that brings anyone who opens it into the organization as a member, and into the chosen shared spaces. Owners and admins only. The organization’s first space is always on the link.","summary":"Create an organization invite link","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInviteLink.CreateInput"}}},"required":true}},"get":{"tags":["organization-invite-link"],"operationId":"organization-invite-link.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The links that still work: not revoked and not expired. The newest comes first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInviteLink.List"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return the links that still work. Owners and admins only.","summary":"List organization invite links"}},"/organization-invite-links/{id}":{"delete":{"tags":["organization-invite-link"],"operationId":"organization-invite-link.revoke","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/OrganizationInviteLink.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Stop a link. People who already joined with it stay. Owners and admins only.","summary":"Revoke an organization invite link"}},"/organization-join-links/{token}/preview":{"get":{"tags":["organization-join-link"],"operationId":"organization-join-link.preview","parameters":[{"name":"token","in":"path","schema":{"$ref":"#/components/schemas/OrganizationInviteLink.Token_1"},"required":true}],"security":[],"responses":{"200":{"description":"OrganizationInviteLink.Preview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInviteLink.Preview"}}}}},"description":"Return the state of an invite link with its organization, inviter and spaces, without signing in. Unknown links return the `invalid` state.","summary":"Preview an organization invite link"}},"/organization-join-links/{token}/accept":{"post":{"tags":["organization-join-link"],"operationId":"organization-join-link.accept","parameters":[{"name":"token","in":"path","schema":{"$ref":"#/components/schemas/OrganizationInviteLink.Token_1"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"OrganizationInviteLink.Joined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInviteLink.Joined"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Add the signed-in person to the link’s organization as a member, and to the link’s shared spaces, in one step. A person already in the organization only gains the spaces. Accepting again is safe and finishes a join that stopped half way. Expired and revoked links return a `NotFoundError` and add no one.","summary":"Join an organization with its invite link"}},"/environment-templates":{"get":{"tags":["environment-template"],"operationId":"environment-template.list","parameters":[{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentTemplate.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the environment-templates that the caller can see.","summary":"List environment-templates"},"post":{"tags":["environment-template"],"operationId":"environment-template.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentTemplate.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one environment-template.","summary":"Create environment-template","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.CreateInput"}}},"required":true}}},"/environment-templates/{idOrSlug}":{"get":{"tags":["environment-template"],"operationId":"environment-template.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The environment-template’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentTemplate.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one environment-template by ID.","summary":"Get environment-template"}},"/environment-templates/{id}":{"patch":{"tags":["environment-template"],"operationId":"environment-template.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/EnvironmentTemplate.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentTemplate.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one environment-template.","summary":"Update environment-template","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.UpdateInput"}}},"required":true}},"delete":{"tags":["environment-template"],"operationId":"environment-template.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/EnvironmentTemplate.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentTemplate.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one environment-template and return it. Archiving an archived environment-template returns it unchanged.","summary":"Archive environment-template"}},"/environment-templates/{id}/retryBuild":{"post":{"tags":["environment-template"],"operationId":"environment-template.retryBuild","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/EnvironmentTemplate.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentTemplate.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the retryBuild action on one environment-template.","summary":"retryBuild environment-template","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.RetryBuildInput"}}},"required":true}}},"/environment-templates/{id}/affectedSpaces":{"post":{"tags":["environment-template"],"operationId":"environment-template.affectedSpaces","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/EnvironmentTemplate.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The live spaces whose settings name the machine, or whose brains or chats still run on it. A shutdown of each applies a change of the machine now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.AffectedSpaces"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the affectedSpaces action on one environment-template.","summary":"affectedSpaces environment-template","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentTemplate.AffectedSpacesInput"}}},"required":true}}},"/environment-providers":{"get":{"tags":["environmentProvider"],"operationId":"environmentProvider.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentProvider.Infos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentProvider.Infos"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return the environment providers this deployment has, each with a JSON Schema of the config that an environment template of that provider takes.","summary":"List environment providers"}},"/brain-providers":{"get":{"tags":["environmentProvider"],"operationId":"environmentProvider.brains","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"EnvironmentProvider.Infos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentProvider.Infos"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return the providers this deployment runs brains on. A space picks one for its brains, and a template of it for their machine.","summary":"List brain providers"}},"/space-settings/{idOrSlug}":{"get":{"tags":["space-settings"],"operationId":"space-settings.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The space-settings’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceSettings.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceSettings.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one space-settings by ID.","summary":"Get space-settings"}},"/space-settings/{id}":{"patch":{"tags":["space-settings"],"operationId":"space-settings.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SpaceSettings.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceSettings.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one space-settings.","summary":"Update space-settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceSettings.UpdateInput"}}},"required":true}}},"/organization-settings/{idOrSlug}":{"get":{"tags":["organization-settings"],"operationId":"organization-settings.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The organization-settings’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"OrganizationSettings.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettings.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one organization-settings by ID.","summary":"Get organization-settings"}},"/organization-settings/{id}":{"patch":{"tags":["organization-settings"],"operationId":"organization-settings.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Auth.OrganizationID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"OrganizationSettings.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettings.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one organization-settings.","summary":"Update organization-settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettings.UpdateInput"}}},"required":true}}},"/memory":{"get":{"tags":["memory"],"operationId":"memory.list","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_2"},"required":false},{"name":"prefix","in":"query","schema":{"type":"string","description":"Only the files whose path starts with it, such as `people/`."},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Memory.Path"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"List the file paths of a memory. Pass spaceId for a space’s memory; omit it for the organization’s memory. `memory.md` is the root file that every chat in scope gets in its context.","summary":"List memory files"}},"/memory/file":{"get":{"tags":["memory"],"operationId":"memory.read","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_2"},"required":false},{"name":"path","in":"query","schema":{"$ref":"#/components/schemas/Memory.Path"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Memory.File","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Memory.File"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the whole content of one memory file. Pass spaceId for a space’s memory; omit it for the organization’s memory. `memory.md` is the root file that every chat in scope gets in its context.","summary":"Read a memory file"},"put":{"tags":["memory"],"operationId":"memory.write","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Create a memory file or replace its whole content. Pass mode create to fail instead of replacing a file that exists. Keep each fact to one short line and each file on one topic; prefer an edit for a small change. Pass spaceId for a space’s memory; omit it for the organization’s memory. `memory.md` is the root file that every chat in scope gets in its context.","summary":"Write a memory file","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Memory.WriteInput"}}},"required":true}},"patch":{"tags":["memory"],"operationId":"memory.edit","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Memory.File","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Memory.File"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Replace exact text in a memory file and return the new content. oldString must occur once unless replaceAll is set. Pass spaceId for a space’s memory; omit it for the organization’s memory. `memory.md` is the root file that every chat in scope gets in its context.","summary":"Edit a memory file","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Memory.EditInput"}}},"required":true}},"delete":{"tags":["memory"],"operationId":"memory.delete","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_2"},"required":false},{"name":"path","in":"query","schema":{"$ref":"#/components/schemas/Memory.Path"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Delete one memory file. Pass spaceId for a space’s memory; omit it for the organization’s memory. `memory.md` is the root file that every chat in scope gets in its context.","summary":"Delete a memory file"}},"/drive/uploads":{"post":{"tags":["drive"],"operationId":"drive.startUpload","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"WriteResult.Upload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteResult.Upload"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Get a form that uploads one file to a path of a drive: POST its fields, then the file as the field `file`, to uploadUrl before expiresAt. The file must be exactly size bytes. Pass spaceId for a space’s drive; omit it for the organization’s drive. Every chat in scope reads the drive’s files on its environment, read-only. files.list, files.read and files.delete list, read and delete them.","summary":"Start a drive upload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drive.StartUploadInput"}}},"required":true}}},"/drive/file":{"get":{"tags":["drive"],"operationId":"drive.download","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_3"},"required":false},{"name":"path","in":"query","schema":{"$ref":"#/components/schemas/Drive.PathEncoded"},"required":true},{"name":"disposition","in":"query","schema":{"$ref":"#/components/schemas/Drive.Disposition"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Drive.Link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drive.Link"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Get a link that downloads one file of a drive until expiresAt. Pass spaceId for a space’s drive; omit it for the organization’s drive. Every chat in scope reads the drive’s files on its environment, read-only. files.list, files.read and files.delete list, read and delete them.","summary":"Download a drive file"}},"/icons":{"post":{"tags":["icon"],"operationId":"icon.upload","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"ResourceIcon.Upload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceIcon.Upload"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Crop a PNG, JPEG or WebP image of at most 512 KB to a 256×256 WebP and return its public URL. The same image gives the same URL.","summary":"Upload an icon","requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}},"required":true}}},"/files":{"get":{"tags":["files"],"operationId":"files.list","parameters":[{"name":"source","in":"query","schema":{"$ref":"#/components/schemas/FileSystem.Source"},"required":true},{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_4"},"required":false},{"name":"folder","in":"query","schema":{"type":"string","description":"The folder to list, such as `reports/`. Omit it for the root."},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","description":"The `cursor` of the previous page, to list the next one."},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"One page of the entries directly in a folder.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileSystem.Page"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"List the folders and files directly in one folder, folders first, one page at a time. A folder’s path ends with `/`; pass it as folder to list that folder. actions says what you may do in the folder. source picks the files: `drive` for a drive, `memory` for a memory. Pass spaceId for a space’s; omit it for the organization’s.","summary":"List a folder"},"delete":{"tags":["files"],"operationId":"files.delete","parameters":[{"name":"source","in":"query","schema":{"$ref":"#/components/schemas/FileSystem.Source"},"required":true},{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_4"},"required":false},{"name":"path","in":"query","schema":{"type":"string","description":"A file’s path inside its source, such as `reports/q3.pdf`."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Delete one file. There is no undo. source picks the files: `drive` for a drive, `memory` for a memory. Pass spaceId for a space’s; omit it for the organization’s.","summary":"Delete a file"}},"/files/content":{"get":{"tags":["files"],"operationId":"files.read","parameters":[{"name":"source","in":"query","schema":{"$ref":"#/components/schemas/FileSystem.Source"},"required":true},{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_4"},"required":false},{"name":"path","in":"query","schema":{"type":"string","description":"A file’s path inside its source, such as `reports/q3.pdf`."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"A file: text as `utf8`, anything else as `base64`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileSystem.Content"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return a file: text as `utf8`, anything else as `base64`. A file over 1 MiB returns its start, with truncated set; drive.download gives a link to a whole drive file. source picks the files: `drive` for a drive, `memory` for a memory. Pass spaceId for a space’s; omit it for the organization’s.","summary":"Read a file"}},"/agents":{"get":{"tags":["agent"],"operationId":"agent.list","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"Only agents that this space owns or shares, and the global agents, which are in every space."},"required":false},{"name":"isSubagent","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Agent.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the agents that the caller can see.","summary":"List agents"},"post":{"tags":["agent"],"operationId":"agent.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Agent.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one agent.","summary":"Create agent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.CreateInput"}}},"required":true}}},"/agents/{idOrSlug}":{"get":{"tags":["agent"],"operationId":"agent.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The agent’s ID or slug."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Agent.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one agent by ID or slug.","summary":"Get agent"}},"/agents/{id}":{"patch":{"tags":["agent"],"operationId":"agent.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Agent.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Agent.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one agent.","summary":"Update agent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.UpdateInput"}}},"required":true}},"delete":{"tags":["agent"],"operationId":"agent.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Agent.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Agent.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one agent and return it. Archiving an archived agent returns it unchanged.","summary":"Archive agent"}},"/agents/{id}/transferOwnership":{"post":{"tags":["agent"],"operationId":"agent.transferOwnership","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Agent.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Agent.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the transferOwnership action on one agent.","summary":"transferOwnership agent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent.TransferOwnershipInput"}}},"required":true}}},"/apps":{"get":{"tags":["app"],"operationId":"app.list","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID"},"required":false},{"name":"connected","in":"query","schema":{"anyOf":[{"type":"string","enum":["true","false"]}],"description":"Only apps with a profile you can see, registry apps too. Without it, only the organization’s apps."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"App.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the apps that the caller can see.","summary":"List apps"},"post":{"tags":["app"],"operationId":"app.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"App.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one app.","summary":"Create app","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.CreateInput"}}},"required":true}}},"/apps/{idOrSlug}":{"get":{"tags":["app"],"operationId":"app.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The app’s ID or slug."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"App.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one app by ID or slug.","summary":"Get app"}},"/apps/{id}":{"patch":{"tags":["app"],"operationId":"app.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/App.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"App.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one app.","summary":"Update app","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.UpdateInput"}}},"required":true}},"delete":{"tags":["app"],"operationId":"app.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/App.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"App.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one app and return it. Archiving an archived app returns it unchanged.","summary":"Archive app"}},"/apps/{id}/transferOwnership":{"post":{"tags":["app"],"operationId":"app.transferOwnership","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/App.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"App.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the transferOwnership action on one app.","summary":"transferOwnership app","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.TransferOwnershipInput"}}},"required":true}}},"/apps/{idOrSlug}/skills":{"get":{"tags":["app-skills"],"operationId":"app-skills.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"An app’s skills with their instructions and files, by slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App.Skills"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return each skill of the app with its instructions and files. app.get and app.list leave these out, since they can be large.","summary":"Read an app’s skills"}},"/app-profiles":{"get":{"tags":["app-profile"],"operationId":"app-profile.list","parameters":[{"name":"appId","in":"query","schema":{"$ref":"#/components/schemas/App.ID"},"required":false},{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID_5"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the app-profiles that the caller can see.","summary":"List app-profiles"},"post":{"tags":["app-profile"],"operationId":"app-profile.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one app-profile.","summary":"Create app-profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.CreateInput"}}},"required":true}}},"/app-profiles/{idOrSlug}":{"get":{"tags":["app-profile"],"operationId":"app-profile.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The app-profile’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one app-profile by ID.","summary":"Get app-profile"}},"/app-profiles/{id}":{"patch":{"tags":["app-profile"],"operationId":"app-profile.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/AppProfile.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one app-profile.","summary":"Update app-profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.UpdateInput"}}},"required":true}},"delete":{"tags":["app-profile-reach"],"operationId":"app-profile.delete","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/AppProfile.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Delete a profile and its credentials. Spaces that reached it stop using its accounts at once.","summary":"Delete app profile"}},"/app-profiles/{id}/access":{"post":{"tags":["app-profile"],"operationId":"app-profile.access","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/AppProfile.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Add or remove listed spaces, or share with every space. A member changes only spaces they belong to.","summary":"Change the spaces of a shared profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.AccessInput"}}},"required":true}}},"/app-profiles/{id}/link":{"post":{"tags":["app-profile"],"operationId":"app-profile.link","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/AppProfile.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the link action on one app-profile.","summary":"link app-profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.LinkInput"}}},"required":true}}},"/app-profiles/{id}/promote":{"post":{"tags":["app-profile"],"operationId":"app-profile.promote","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/AppProfile.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppProfile.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Turn your private profile into a shared one that lists one space. Its accounts and labels stay.","summary":"Share a private profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.PromoteInput"}}},"required":true}}},"/sessions/{id}/profiles":{"get":{"tags":["app-profile-reach"],"operationId":"session.profiles","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The profiles that a chat reaches, with their gaps.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Reach"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the app profiles the chat can use, each with its items and their status.","summary":"List the profiles a chat reaches"}},"/spaces/{id}/profiles":{"get":{"tags":["app-profile-reach"],"operationId":"space.profiles","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The profiles that a chat reaches, with their gaps.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Reach"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the app profiles a new chat of the caller in this space can use, with their gaps.","summary":"List the profiles a new chat reaches"}},"/apps/{app}/request-connect":{"get":{"tags":["app-profile-reach"],"operationId":"app.request-connect","parameters":[{"name":"app","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"An app a chat asks the person to connect: its space and the space’s profiles of it, with their gaps.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppProfile.Connect"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Show the person a Connect button for an app (ID or slug) in your chat’s space. A profile with no gaps means the app is ready. Only an agent in a chat can call it.","summary":"Ask the person to connect an app"}},"/app-registry":{"get":{"tags":["app-registry"],"operationId":"app-registry.list","parameters":[{"name":"search","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Words to find in any case: each must be part of the slug, the name or the description."},"required":false},{"name":"category","in":"query","schema":{"$ref":"#/components/schemas/Primitive.Slug_5"},"required":false},{"name":"slugs","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"},"description":"Only the apps with these slugs, in slug order."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AppRegistry.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppRegistry.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the app-registry that the caller can see.","summary":"List app-registry"}},"/app-registry/{idOrSlug}":{"get":{"tags":["app-registry"],"operationId":"app-registry.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The app-registry’s ID or slug."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"A registry app as the catalog shows it. app.get returns its MCPs, skills and keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppRegistry.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one app-registry by ID or slug.","summary":"Get app-registry"}},"/app-registry/{idOrSlug}/tools":{"get":{"tags":["app-tools"],"operationId":"app-tools.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The tools each MCP of the app offers, by MCP slug, as its tools/list returns them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppListing.Tools"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the tools each MCP of a registry app offers, by MCP slug, as its listing records them.","summary":"List a registry app’s tools"}},"/mcp/inspect":{"post":{"tags":["mcp-inspect"],"operationId":"mcp.inspect","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"McpInspection.Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpInspection.Result"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Read a remote MCP server without signing in: the auth it asks for, what it says about itself, and its tools when it lists them without a sign-in or in its server card.","summary":"Inspect an MCP server","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpInspection.Input"}}},"required":true}}},"/agent-memberships":{"get":{"tags":["agent-membership"],"operationId":"agent-membership.list","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID"},"required":false},{"name":"agentId","in":"query","schema":{"$ref":"#/components/schemas/Agent.ID"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AgentMembership.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMembership.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the agent-memberships that the caller can see.","summary":"List agent-memberships"},"post":{"tags":["agent-membership"],"operationId":"agent-membership.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AgentMembership.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMembership.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one agent-membership.","summary":"Create agent-membership","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMembership.CreateInput"}}},"required":true}}},"/agent-memberships/{id}":{"delete":{"tags":["agent-membership"],"operationId":"agent-membership.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/AgentMembership.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"AgentMembership.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMembership.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one agent-membership and return it. Archiving an archived agent-membership returns it unchanged.","summary":"Archive agent-membership"}},"/sessions":{"get":{"tags":["session"],"operationId":"session.list","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Space.ID"}}],"description":"Chats in any of these spaces. Without it or `createdBy`, only the caller’s own chats."},"required":false},{"name":"createdBy","in":"query","schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Auth.UserID"}}],"description":"Chats any of these people started."},"required":false},{"name":"agentId","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/Agent.ID"}},"required":false},{"name":"origin","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/Session.Origin"}},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/Session.Status"},"required":false},{"name":"search","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Words to find in any case: each must be part of the title or of a message from a person or an assistant."},"required":false},{"name":"archived","in":"query","schema":{"anyOf":[{"type":"string","enum":["true","false"]}],"description":"Only archived chats. Without it, only chats not archived."},"required":false},{"name":"orderBy","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Session.OrderBy"}],"description":"Newest first by last activity, the default, or by when the chat started."},"required":false},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"The earliest time of `orderBy`, included."},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"The latest time of `orderBy`, not included."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Session.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the sessions that the caller can see.","summary":"List sessions"},"post":{"tags":["session"],"operationId":"session.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Session.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one session.","summary":"Create session","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session.CreateInput"}}},"required":true}}},"/sessions/{idOrSlug}":{"get":{"tags":["session"],"operationId":"session.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The session’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Session.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one session by ID.","summary":"Get session"}},"/sessions/{id}":{"delete":{"tags":["session"],"operationId":"session.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Session.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one session and return it. Archiving an archived session returns it unchanged.","summary":"Archive session"}},"/sessions/{id}/chat":{"post":{"tags":["chat"],"operationId":"chat.access","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true},{"name":"unreachable","in":"query","schema":{"type":"string","enum":["true","false"],"description":"`true` when the client could not reach the brain at the last URL; Ren checks the sandbox first."},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Session.ClientAccess","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session.ClientAccess"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the URL of the session’s brain and a short-lived token for the Chat API. Ask again before `expiresAt`.","summary":"Open a session’s chat"}},"/sessions/{id}/messages":{"get":{"tags":["chat"],"operationId":"chat.messages","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SessionMessage.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionMessage.Page"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"413":{"description":"TooLargeError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return a page of the messages Ren saved for the session, newest first, as `session.messages` in the Chat API does. Follow `cursor.next` for older messages. Read this while `chat.access` returns `starting` or `failed`. A staged revert hides its messages. `413` means the page is too large: ask for a smaller `limit`. `503` means Ren is busy: ask again after `retryAfterMs`.","summary":"List a session's saved messages"}},"/sessions/{id}/chat/retry":{"post":{"tags":["chat"],"operationId":"chat.retry","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Start the session’s brain again after `chat.access` returned `failed`, and start the session with `message` as its first message. A session that already started ignores `message`.","summary":"Retry a failed session","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"anyOf":[{"$ref":"#/components/schemas/Session.FirstMessage"},{"type":"null"}]}},"additionalProperties":false}}},"required":true}}},"/spaces/{id}/chat/prepare":{"post":{"tags":["chat"],"operationId":"chat.prepare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Space.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Start waking the brain of a space whose chats share one brain, so a new chat there starts faster. Call it when someone begins a new chat. Ren wakes each brain at most once per 5 minutes.","summary":"Wake a space's brain"}},"/sessions/{id}/models":{"get":{"tags":["chat"],"operationId":"chat.models","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true},{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"The space the session starts in."},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SessionModel.Choices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionModel.Choices"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the models and variants a session with this ID may start with, before it exists, and its default. Pass one as `model` to `session.create`. Once the session runs, `model.list` in the Chat API lists them.","summary":"List models for a new session"}},"/tasks":{"get":{"tags":["task"],"operationId":"task.list","parameters":[{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID"},"required":false},{"name":"status","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Task.Status"}],"description":"Only this status. Wins over `includeDone`."},"required":false},{"name":"includeDone","in":"query","schema":{"anyOf":[{"type":"string","enum":["true","false"]}],"description":"Include `done` and `dismissed` tasks. Without it, a list has only the actionable tasks: `backlog`, `todo` and `in_progress`."},"required":false},{"name":"priority","in":"query","schema":{"$ref":"#/components/schemas/Task.Priority"},"required":false},{"name":"agentId","in":"query","schema":{"$ref":"#/components/schemas/Agent.ID"},"required":false},{"name":"ownerId","in":"query","schema":{"$ref":"#/components/schemas/Auth.UserID"},"required":false},{"name":"search","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Words to find in any case: each must be part of the title, the description or a label, or be the task’s number (`12`, `#12` or `ENG-12`)."},"required":false},{"name":"label","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"A label name, in any case."},"required":false},{"name":"humanReview","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"linkedTo","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/TaskLink.Url"}],"description":"Only tasks that link this URL. A pull request, Linear issue or Slack thread matches however its URL is written."},"required":false},{"name":"parentId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Task.ID"},{"type":"string","enum":["none"]}],"description":"A task ID: only its subtasks, oldest first. `none`: only tasks that are not subtasks."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the tasks that the caller can see.","summary":"List tasks"},"post":{"tags":["task"],"operationId":"task.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one task.","summary":"Create task","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.CreateInput"}}},"required":true}}},"/tasks/{idOrSlug}":{"get":{"tags":["task"],"operationId":"task.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The task’s ID or slug."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one task by ID or slug.","summary":"Get task"}},"/tasks/{id}":{"patch":{"tags":["task"],"operationId":"task.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one task.","summary":"Update task","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.UpdateInput"}}},"required":true}},"delete":{"tags":["task"],"operationId":"task.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one task and return it. Archiving an archived task returns it unchanged.","summary":"Archive task"}},"/tasks/{id}/assign":{"post":{"tags":["task"],"operationId":"task.assign","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the assign action on one task.","summary":"assign task","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.AssignInput"}}},"required":true}}},"/tasks/{id}/start":{"post":{"tags":["task"],"operationId":"task.start","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the start action on one task.","summary":"start task","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.StartInput"}}},"required":true}}},"/tasks/{id}/review":{"post":{"tags":["task"],"operationId":"task.review","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the review action on one task.","summary":"review task","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.ReviewInput"}}},"required":true}}},"/tasks/{id}/finish":{"post":{"tags":["task"],"operationId":"task.finish","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Task.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the finish action on one task.","summary":"finish task","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task.FinishInput"}}},"required":true}}},"/task-comments":{"post":{"tags":["task-comment"],"operationId":"task-comment.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"TaskComment.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskComment.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one task-comment.","summary":"Create task-comment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskComment.CreateInput"}}},"required":true}}},"/task-comments/{id}":{"patch":{"tags":["task-comment"],"operationId":"task-comment.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/TaskComment.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"TaskComment.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskComment.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one task-comment.","summary":"Update task-comment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskComment.UpdateInput"}}},"required":true}},"delete":{"tags":["task-comment"],"operationId":"task-comment.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/TaskComment.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"TaskComment.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskComment.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one task-comment and return it. Archiving an archived task-comment returns it unchanged.","summary":"Archive task-comment"}},"/task-activities":{"get":{"tags":["task-activity"],"operationId":"task-activity.list","parameters":[{"name":"taskId","in":"query","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"TaskActivity.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskActivity.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the task-activities that the caller can see.","summary":"List task-activities"}},"/sessions/{id}/links":{"get":{"tags":["link"],"operationId":"session.links","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"SessionLinks.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionLinks.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the chat’s tasks, the pull requests and issues they link, and the chat’s channel threads, as Ren stores them. A subagent’s chat reads through its root chat.","summary":"List a chat’s links"}},"/sessions/{id}/usage":{"get":{"tags":["link"],"operationId":"session.usage","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"What a chat cost, in millionths of a US dollar. It counts the chat and its subagents, and leaves out events that the organization paid with its own key or subscription.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionUsage.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return what the chat and its subagents cost, from Ren’s usage events, split into models and tools. Sandbox compute is not counted per chat. Events that the organization paid with its own key or subscription are left out. Events arrive a few seconds after each call. A subagent’s chat reads through its root chat.","summary":"Read a chat’s cost"}},"/sessions/{id}/pull-requests":{"get":{"tags":["link"],"operationId":"session.pullRequests","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PullRequest.Info"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the pull requests of `session.links` with their title and state from GitHub. Ren reads GitHub on each call.","summary":"List a chat’s pull requests"}},"/tasks/{id}/pull-requests":{"get":{"tags":["link"],"operationId":"task.pullRequests","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Task.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PullRequest.Info"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return the pull requests the task links, in link order, with their title and state from GitHub. Ren reads GitHub on each call.","summary":"List a task’s pull requests"}},"/labels":{"get":{"tags":["label"],"operationId":"label.list","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"Only the system labels, the org labels and the labels of this space. Without it, the labels of every space you are in."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Label.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the labels that the caller can see.","summary":"List labels"},"post":{"tags":["label"],"operationId":"label.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Label.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one label.","summary":"Create label","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label.CreateInput"}}},"required":true}}},"/labels/{id}":{"patch":{"tags":["label"],"operationId":"label.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Label.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Label.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one label.","summary":"Update label","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label.UpdateInput"}}},"required":true}},"delete":{"tags":["label"],"operationId":"label.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Label.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Label.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one label and return it. Archiving an archived label returns it unchanged.","summary":"Archive label"}},"/views":{"get":{"tags":["view"],"operationId":"view.list","parameters":[{"name":"type","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/View.Type"}],"description":"Only views of this type. Without it, views of every type."},"required":false},{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"The views of this space’s page. Without it, the views of the organization’s page. Both start with the system views."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"View.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the views that the caller can see.","summary":"List views"},"post":{"tags":["view"],"operationId":"view.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"View.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one view.","summary":"Create view","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/View.CreateInput"}}},"required":true}}},"/views/{id}":{"patch":{"tags":["view"],"operationId":"view.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/View.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"View.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one view.","summary":"Update view","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/View.UpdateInput"}}},"required":true}},"delete":{"tags":["view"],"operationId":"view.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/View.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"View.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one view and return it. Archiving an archived view returns it unchanged.","summary":"Archive view"}},"/schedules":{"get":{"tags":["schedule"],"operationId":"schedule.list","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"Without it, the schedules of every space you are in."},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/Schedule.Status"},"required":false},{"name":"search","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Words to find in any case: each must be part of the name or the message."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the schedules that the caller can see.","summary":"List schedules"},"post":{"tags":["schedule"],"operationId":"schedule.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one schedule.","summary":"Create schedule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.CreateInput"}}},"required":true}}},"/schedules/{idOrSlug}":{"get":{"tags":["schedule"],"operationId":"schedule.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The schedule’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one schedule by ID.","summary":"Get schedule"}},"/schedules/{id}":{"patch":{"tags":["schedule"],"operationId":"schedule.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Schedule.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one schedule.","summary":"Update schedule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.UpdateInput"}}},"required":true}},"delete":{"tags":["schedule"],"operationId":"schedule.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Schedule.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one schedule and return it. Archiving an archived schedule returns it unchanged.","summary":"Archive schedule"}},"/schedules/{id}/pause":{"post":{"tags":["schedule"],"operationId":"schedule.pause","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Schedule.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the pause action on one schedule.","summary":"pause schedule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.NoInput"}}},"required":true}}},"/schedules/{id}/resume":{"post":{"tags":["schedule"],"operationId":"schedule.resume","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Schedule.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the resume action on one schedule.","summary":"resume schedule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.NoInput"}}},"required":true}}},"/schedules/{id}/run":{"post":{"tags":["schedule"],"operationId":"schedule.run","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Schedule.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Schedule.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the run action on one schedule.","summary":"run schedule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule.NoInput"}}},"required":true}}},"/schedule-runs":{"get":{"tags":["schedule-run"],"operationId":"schedule-run.list","parameters":[{"name":"scheduleId","in":"query","schema":{"$ref":"#/components/schemas/Schedule.ID"},"required":true},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/ScheduleRun.Status"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"ScheduleRun.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleRun.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the schedule-runs that the caller can see.","summary":"List schedule-runs"}},"/webhooks":{"get":{"tags":["webhook"],"operationId":"webhook.list","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"Without it, the webhooks of every space you are in."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the webhooks that the caller can see.","summary":"List webhooks"},"post":{"tags":["webhook"],"operationId":"webhook.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create a webhook in a space. It starts in debug mode (`listening`): Ren records requests and starts no session. Then: 1. Give the URL to the user. 2. If the provider signs its requests, set the signature check. The user pastes the provider’s secret in the Ren app, because no tool sets secrets. 3. After a real request arrives, check the parser with `webhook_test`. 4. Make it live with `webhook_update`.","summary":"Create webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.CreateInput"}}},"required":true}}},"/webhooks/{idOrSlug}":{"get":{"tags":["webhook"],"operationId":"webhook.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The webhook’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one webhook by ID.","summary":"Get webhook"}},"/webhooks/{id}":{"patch":{"tags":["webhook"],"operationId":"webhook.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one webhook.","summary":"Update webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.UpdateInput"}}},"required":true}},"delete":{"tags":["webhook"],"operationId":"webhook.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one webhook and return it. Archiving an archived webhook returns it unchanged.","summary":"Archive webhook"}},"/webhooks/{id}/rotateUrl":{"post":{"tags":["webhook"],"operationId":"webhook.rotateUrl","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the rotateUrl action on one webhook.","summary":"rotateUrl webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.NoInput"}}},"required":true}}},"/webhooks/{id}/setSigningSecret":{"post":{"tags":["webhook"],"operationId":"webhook.setSigningSecret","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Secret"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the setSigningSecret action on one webhook.","summary":"setSigningSecret webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.SigningSecretInput"}}},"required":true}}},"/webhooks/{id}/revealSigningSecret":{"post":{"tags":["webhook"],"operationId":"webhook.revealSigningSecret","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Secret"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the revealSigningSecret action on one webhook.","summary":"revealSigningSecret webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.NoInput"}}},"required":true}}},"/webhooks/{id}/test":{"post":{"tags":["webhook"],"operationId":"webhook.test","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"What the parser would do with each request. Saves nothing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.TestResult"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run a parser on recorded requests, and show which ones start a session, which are ignored and which break. Use it before you make a webhook live.","summary":"test webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.TestInput"}}},"required":true}}},"/webhooks/{id}/replay":{"post":{"tags":["webhook"],"operationId":"webhook.replay","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Webhook.Replayed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.Replayed"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Send the requests that were recorded in debug mode to their sessions. The webhook must be live.","summary":"replay webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook.NoInput"}}},"required":true}}},"/webhook-requests":{"get":{"tags":["webhook-request"],"operationId":"webhook-request.list","parameters":[{"name":"webhookId","in":"query","schema":{"$ref":"#/components/schemas/Webhook.ID"},"required":true},{"name":"outcome","in":"query","schema":{"$ref":"#/components/schemas/WebhookRequest.Outcome"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"WebhookRequest.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRequest.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"List the requests that a webhook received, newest first, without their bodies.","summary":"List webhook-requests"}},"/webhook-requests/{id}/get":{"post":{"tags":["webhook-request"],"operationId":"webhook-request.get","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/WebhookRequest.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"WebhookRequest.Detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRequest.Detail"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Get one request with its headers and body. Use it to find the paths for the parser.","summary":"get webhook-request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRequest.NoInput"}}},"required":true}}},"/artifacts":{"get":{"tags":["artifact"],"operationId":"artifact.list","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"Without it, the artifacts of every space you are in."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Artifact.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the artifacts that the caller can see.","summary":"List artifacts"}},"/artifacts/{idOrSlug}":{"get":{"tags":["artifact"],"operationId":"artifact.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The artifact’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Artifact.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one artifact by ID.","summary":"Get artifact"}},"/artifacts/{id}":{"patch":{"tags":["artifact"],"operationId":"artifact.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Artifact.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Artifact.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one artifact.","summary":"Update artifact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact.UpdateInput"}}},"required":true}},"delete":{"tags":["artifact"],"operationId":"artifact.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Artifact.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Artifact.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one artifact and return it. Archiving an archived artifact returns it unchanged.","summary":"Archive artifact"}},"/credentials":{"get":{"tags":["credential"],"operationId":"credential.list","parameters":[{"name":"owner","in":"query","schema":{"$ref":"#/components/schemas/Credential.OwnerKind"},"required":false},{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID"},"required":false},{"name":"type","in":"query","schema":{"$ref":"#/components/schemas/Credential.Type"},"required":false},{"name":"search","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Words to find in any case: each must be part of the label or the name."},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the credentials that the caller can see.","summary":"List credentials"},"post":{"tags":["credential"],"operationId":"credential.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one credential.","summary":"Create credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.CreateInput"}}},"required":true}}},"/credentials/{idOrSlug}":{"get":{"tags":["credential"],"operationId":"credential.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The credential’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one credential by ID.","summary":"Get credential"}},"/credentials/{id}":{"patch":{"tags":["credential"],"operationId":"credential.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Credential.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one credential.","summary":"Update credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.UpdateInput"}}},"required":true}}},"/credentials/{id}/rotate":{"post":{"tags":["credential"],"operationId":"credential.rotate","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Credential.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the rotate action on one credential.","summary":"rotate credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.RotateInput"}}},"required":true}}},"/credentials/{id}/move":{"post":{"tags":["credential"],"operationId":"credential.move","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Credential.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the move action on one credential.","summary":"move credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.MoveInput"}}},"required":true}}},"/credentials/{id}/copy":{"post":{"tags":["credential"],"operationId":"credential.copy","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Credential.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the copy action on one credential.","summary":"copy credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.MoveInput"}}},"required":true}}},"/credentials/{id}/remove":{"post":{"tags":["credential"],"operationId":"credential.remove","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Credential.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Credential.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the remove action on one credential.","summary":"remove credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.RemoveInput"}}},"required":true}}},"/credentials/connect":{"post":{"tags":["credential-connect"],"operationId":"credential.connect","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WriteResult.Redirect"},{"$ref":"#/components/schemas/Credential.Info"}]}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Start a sign-in for one MCP of a profile’s app and return the address of the consent page, or return the credential when it is already connected and `reconnect` is not set. Read the sign-in with `oauth-session.get`.","summary":"Connect an MCP","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential.ConnectInput"}}},"required":true}}},"/oauth-sessions/{idOrSlug}":{"get":{"tags":["oauth-session"],"operationId":"oauth-session.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The oauth-session’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"OAuthSession.Info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthSession.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one oauth-session by ID.","summary":"Get oauth-session"}},"/oauth-apps":{"get":{"tags":["oauth-app"],"operationId":"oauth-app.list","parameters":[{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"OAuthApp.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthApp.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the oauth-apps that the caller can see.","summary":"List oauth-apps"},"post":{"tags":["oauth-app"],"operationId":"oauth-app.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"An org’s own OAuth client. Ren never returns its secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthApp.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one oauth-app.","summary":"Create oauth-app","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthApp.CreateInput"}}},"required":true}}},"/oauth-apps/{idOrSlug}":{"get":{"tags":["oauth-app"],"operationId":"oauth-app.get","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string","description":"The oauth-app’s ID."},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"An org’s own OAuth client. Ren never returns its secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthApp.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return one oauth-app by ID.","summary":"Get oauth-app"}},"/oauth-apps/{id}":{"patch":{"tags":["oauth-app"],"operationId":"oauth-app.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/OAuthApp.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"An org’s own OAuth client. Ren never returns its secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthApp.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one oauth-app.","summary":"Update oauth-app","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthApp.UpdateInput"}}},"required":true}},"delete":{"tags":["oauth-app"],"operationId":"oauth-app.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/OAuthApp.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"An org’s own OAuth client. Ren never returns its secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthApp.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Archive one oauth-app and return it. Archiving an archived oauth-app returns it unchanged.","summary":"Archive oauth-app"}},"/ren-inference/sign-in":{"post":{"tags":["ren-inference"],"operationId":"ren-inference.signIn.start","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"RenInference.SignIn","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.SignIn"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the vendor’s sign-in address. The member opens it in a new tab, signs in, and pastes what the vendor shows to `ren-inference.signIn.complete`. Any member connects their own subscription.","summary":"Start signing in with a subscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.SignInInput"}}},"required":true}}},"/ren-inference/sign-in/{id}":{"post":{"tags":["ren-inference"],"operationId":"ren-inference.signIn.complete","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Store the member’s subscription from what the vendor’s sign-in showed, such as a code or the address it ended on. Only the member who started the sign-in can finish it.","summary":"Finish signing in with a subscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.SignInCode"}}},"required":true}}},"/ren-inference/connections":{"get":{"tags":["ren-inference"],"operationId":"ren-inference.connection.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RenInference.Connection"}}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"List the organization’s provider connections, with display data and each seat’s usage limits.","summary":"List provider connections"}},"/ren-inference/connections/{id}":{"patch":{"tags":["ren-inference"],"operationId":"ren-inference.connection.rename","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"A model provider the organization connected, with display data from the Ren Inference Service.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.Connection"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Change the label of one connection. Only the member who connected it, admins and owners rename (`canManage`).","summary":"Rename a provider connection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.RenameInput"}}},"required":true}},"delete":{"tags":["ren-inference"],"operationId":"ren-inference.connection.remove","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Remove one connection. New requests stop using it at once. Only the member who connected it, admins and owners remove (`canManage`).","summary":"Remove a provider connection"}},"/ren-inference/keys":{"get":{"tags":["ren-inference"],"operationId":"ren-inference.key.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"RenInference.KeyList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.KeyList"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"List the inference keys that the caller may see, newest first: owners and admins see every key of the organization, members see their own.","summary":"List inference keys"},"post":{"tags":["ren-inference"],"operationId":"ren-inference.key.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"RenInference.CreatedKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.CreatedKey"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create a key for the caller and return its secret and the base URL. Any member creates keys.","summary":"Create an inference key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.CreateKeyInput"}}},"required":true}}},"/ren-inference/keys/usage":{"get":{"tags":["ren-inference"],"operationId":"ren-inference.key.usage","parameters":[{"name":"period","in":"query","schema":{"$ref":"#/components/schemas/RenInference.Period"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RenInference.KeyUsage"}}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the calls, tokens and charges of each key that the caller may see and that has calls in the period.","summary":"Read inference key usage"}},"/ren-inference/keys/{id}":{"delete":{"tags":["ren-inference"],"operationId":"ren-inference.key.revoke","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Revoke one key. Calls with it stop at once. Members revoke their own keys; owners and admins revoke any key. Revoking a revoked or expired key succeeds.","summary":"Revoke an inference key"}},"/ren-inference/keys/{id}/secret":{"get":{"tags":["ren-inference"],"operationId":"ren-inference.key.secret","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"RenInference.KeySecret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.KeySecret"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the secret of one of the caller’s own active keys and the base URL. Only the owner reads a secret.","summary":"Read an inference key"}},"/ren-inference/harness-plans":{"post":{"tags":["ren-inference"],"operationId":"ren-inference.harness-plan","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The edits that point a harness at Ren’s models, built from the organization’s live model list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.HarnessPlan"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the config edits that point a harness at Ren’s models, from the organization’s live model list. The plan holds `${REN_INFERENCE_KEY}` where the key goes.","summary":"Plan a harness setup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenInference.HarnessPlanInput"}}},"required":true}}},"/providers":{"get":{"tags":["provider"],"operationId":"provider.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Provider.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider.Page"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"The built-in providers, the providers the organization added, and every provider it can add, with its model count. Every member reads it.","summary":"List the organization’s providers"}},"/providers/{id}":{"patch":{"tags":["provider"],"operationId":"provider.update","parameters":[{"name":"id","in":"path","schema":{"type":"string","minLength":1},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Change one provider. Off removes the provider’s models from pickers at the next push. Only admins and owners.","summary":"Turn a provider on or off, or change its method","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider.UpdateInput"}}},"required":true}}},"/providers/{id}/key":{"put":{"tags":["provider"],"operationId":"provider.key.save","parameters":[{"name":"id","in":"path","schema":{"type":"string","minLength":1},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Store the fields in the provider’s inference service as given; it keeps the last 4 characters. Ren never stores or logs the key. A wrong key fails at its first call. Only admins and owners.","summary":"Save a provider key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider.KeyInput"}}},"required":true}},"delete":{"tags":["provider"],"operationId":"provider.key.remove","parameters":[{"name":"id","in":"path","schema":{"type":"string","minLength":1},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Remove the key from the provider’s inference service. The provider’s models leave pickers at the next push. Only admins and owners.","summary":"Remove a provider key"}},"/providers/{id}/models":{"get":{"tags":["provider"],"operationId":"provider.models.list","parameters":[{"name":"id","in":"path","schema":{"type":"string","minLength":1},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"A provider’s models and their switches, the latest release first. A new model is always on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider.ModelList"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Each of the provider’s models with its price per 1M tokens, whether it is free, and whether it is on. A new model is always on.","summary":"List a provider’s models"},"patch":{"tags":["provider"],"operationId":"provider.models.update","parameters":[{"name":"id","in":"path","schema":{"type":"string","minLength":1},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Switch the listed models on or off; the others keep their state. A model that is off leaves pickers at the next push. A subscription’s models come from its plan and cannot be switched (409). Only admins and owners.","summary":"Turn a provider’s models on or off","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider.ModelListInput"}}},"required":true}}},"/sessions/{id}/limits":{"get":{"tags":["limits"],"operationId":"limits.get","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Session.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"What the chat’s current model uses up: the limits of its inference service and the Ren credit. Empty when a source does not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Limits.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return what the chat’s current model uses up: the limits its inference service reports (the free cap of a free model; the windows of the seat that served the chat’s last seat call) and, for a model Ren pays for, the organization’s Ren credit. Ren reads the inference service and billing on each call. A member of the chat’s space reads it.","summary":"Read the limits of a chat’s model"}},"/billing":{"get":{"tags":["billing"],"operationId":"billing.get","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The organization’s plan and credit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing.Summary"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the plan, its status, the next billing date, a downgrade that waits, and the credit. An organization with no billing is on `free` with no credit.","summary":"Get the organization’s plan and credit"}},"/billing/plans":{"get":{"tags":["billing"],"operationId":"billing.plan.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Billing.Plan"}}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the paid plans in display order. Free is not in the list.","summary":"List the paid plans"}},"/billing/invoices":{"get":{"tags":["billing"],"operationId":"billing.invoice.list","parameters":[{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"perPage","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Billing.InvoicePage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing.InvoicePage"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return a page of payments, newest first. Ask for `nextPage` until it is null.","summary":"List the organization’s invoices"}},"/billing/invoices/{id}/url":{"get":{"tags":["billing"],"operationId":"billing.invoice.url","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Billing.Link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing.Link"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the address of one invoice of the organization. `url` is empty when it has none.","summary":"Get an invoice’s link"}},"/billing/subscribe":{"post":{"tags":["billing"],"operationId":"billing.subscribe","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Billing.Checkout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing.Checkout"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return a checkout page for the plan. The plan changes after the payment. Only for an organization on Free. Admins and owners only.","summary":"Start a subscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing.PlanInput"}}},"required":true}}},"/billing/change-plan":{"post":{"tags":["billing"],"operationId":"billing.change-plan","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Upgrade now, charged to the saved card, or downgrade on the next billing date. The plan changes when the payment clears. `409` means a payment is still processing. Admins and owners only.","summary":"Change the plan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing.PlanInput"}}},"required":true}}},"/billing/cancel":{"post":{"tags":["billing"],"operationId":"billing.cancel","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"End the plan on the next billing date. Then the organization is on Free. Admins and owners only.","summary":"Cancel the plan"}},"/billing/portal":{"post":{"tags":["billing"],"operationId":"billing.portal","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Billing.Link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing.Link"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return the address of the payment provider’s portal, to change the payment method. Admins and owners only.","summary":"Open the billing portal"}},"/onboarding":{"get":{"tags":["onboarding"],"operationId":"onboarding.get","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The caller’s onboarding checklists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Onboarding.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return the organization’s checklist and the caller’s own one. Each lists every step in order, with the time it was first completed, and when the checklist was hidden.","summary":"Get the onboarding checklists"}},"/onboarding/complete":{"post":{"tags":["onboarding"],"operationId":"onboarding.complete","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The caller’s onboarding checklists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Onboarding.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Mark one of the caller’s own steps done that Ren cannot see happen, such as starring Ren on GitHub or importing memory from another agent. Only those steps are accepted, and none pays a reward. Marking it again keeps the first time.","summary":"Mark a personal onboarding step done","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Onboarding.CompleteInput"}}},"required":true}}},"/onboarding/dismiss":{"post":{"tags":["onboarding"],"operationId":"onboarding.dismiss","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The caller’s onboarding checklists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Onboarding.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Hide the organization’s checklist for every member, which only admins do, or the caller’s own one for the caller. Steps still complete after it. Hiding it again keeps the first time.","summary":"Hide an onboarding checklist","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Onboarding.DismissInput"}}},"required":true}}},"/channel-installs":{"get":{"tags":["channel-install"],"operationId":"channel-install.list","parameters":[{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"ChannelInstall.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInstall.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the channel-installs that the caller can see.","summary":"List channel-installs"}},"/channel-installs/{id}":{"patch":{"tags":["channel-install"],"operationId":"channel-install.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/ChannelInstall.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The link between the organization and one provider workspace. Ren never returns its secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInstall.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Change one channel-install.","summary":"Update channel-install","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInstall.UpdateInput"}}},"required":true}}},"/channel-installs/{id}/remove":{"post":{"tags":["channel-install"],"operationId":"channel-install.remove","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/ChannelInstall.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The link between the organization and one provider workspace. Ren never returns its secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInstall.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the remove action on one channel-install.","summary":"remove channel-install","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInstall.RemoveInput"}}},"required":true}}},"/channel-mappings":{"get":{"tags":["channel-mapping"],"operationId":"channel-mapping.list","parameters":[{"name":"installId","in":"query","schema":{"$ref":"#/components/schemas/ChannelInstall.ID"},"required":false},{"name":"spaceId","in":"query","schema":{"$ref":"#/components/schemas/Space.ID"},"required":false},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"ChannelMapping.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMapping.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return one page of the channel-mappings that the caller can see.","summary":"List channel-mappings"},"post":{"tags":["channel-mapping"],"operationId":"channel-mapping.create","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The link from one place to a space.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMapping.Info"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Create one channel-mapping.","summary":"Create channel-mapping","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMapping.CreateInput"}}},"required":true}}},"/channel-mappings/{id}/remove":{"post":{"tags":["channel-mapping"],"operationId":"channel-mapping.remove","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/ChannelMapping.ID"},"required":true}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The link from one place to a space.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMapping.Info"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Run the remove action on one channel-mapping.","summary":"remove channel-mapping","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMapping.RemoveInput"}}},"required":true}}},"/channel-providers":{"get":{"tags":["channel-connect"],"operationId":"channel-provider.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"ChannelInstall.ProviderInfos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInstall.ProviderInfos"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return the providers that this Ren server can install: Slack, Linear or GitHub.","summary":"List channel providers"}},"/channel-installs/start":{"post":{"tags":["channel-connect"],"operationId":"channel-install.start","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"WriteResult.Redirect","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteResult.Redirect"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Return the address of the provider’s install page. The provider sends the person back to Ren, which stores the install. An organization has at most one install per provider.","summary":"Start a channel install","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInstall.StartInput"}}},"required":true}}},"/channel-places":{"get":{"tags":["channel-connect"],"operationId":"channel-place.list","parameters":[{"name":"installId","in":"query","schema":{"$ref":"#/components/schemas/ChannelInstall.ID"},"required":true},{"name":"page","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"ChannelPlace.Page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPlace.Page"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return one page of the places that an install reaches, sorted by name, each with its mapping: Slack channels, Linear projects or GitHub repositories. Ren reads them from the provider.","summary":"List channel places"}},"/repositories":{"get":{"tags":["repository"],"operationId":"repository.list","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GitHost.Listing"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Return, for each git host, whether the organization connected it and the repositories that it can read there. A person picks references from them. For GitHub, they are the repositories of the organization’s GitHub App installation.","summary":"List repositories to read"}},"/sign-in-providers":{"get":{"tags":["sign-in"],"operationId":"sign-in-provider.list","parameters":[],"security":[],"responses":{"200":{"description":"Auth.SignInProviders","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Auth.SignInProviders"}}}}},"description":"Return the accounts that a person can sign in with on this Ren server, besides email.","summary":"List sign-in providers"}},"/infra/pull":{"post":{"tags":["infra"],"operationId":"infra.pull","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"The part of the organization that a folder manages today: organization settings and memory, environment templates, shared spaces with their runtime, agents, apps, schedules, channels and memory, the organization’s shared profiles, and the channel and profile bindings of each space.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Infra.Pulled"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return the organization settings and the shared spaces as a folder’s contents, with the resources that the folder should write and remove. A resource that changed in the folder and in Ren is a conflict. Needs an organization admin.","summary":"Pull the organization’s setup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Infra.PullInput"}}},"required":true}}},"/infra/plan":{"post":{"tags":["infra"],"operationId":"infra.plan","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Infra.Plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Infra.Plan"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}}},"description":"Return the changes that would make the organization match the folder, the problems that stop it, and the digest that apply needs.","summary":"Plan changes to the organization’s setup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Infra.PlanInput"}}},"required":true}}},"/infra/apply":{"post":{"tags":["infra"],"operationId":"infra.apply","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Infra.Applied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Infra.Applied"}}}},"400":{"description":"InvalidRequestError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestErrorEncoded"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}},"409":{"description":"ConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictErrorEncoded"}}}}},"description":"Plan the folder again and write its changes, when the digest matches. A conflict refuses the apply unless force is set. A failed write stops apply and names its change; the writes before it stay.","summary":"Apply the organization’s setup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Infra.ApplyInput"}}},"required":true}}},"/insights":{"get":{"tags":["insights"],"operationId":"insights.query","parameters":[{"name":"spaceId","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"}],"description":"Without it, the whole organization, which only admins and owners can read."},"required":false},{"name":"from","in":"query","schema":{"type":"string"},"required":true},{"name":"to","in":"query","schema":{"type":"string"},"required":true},{"name":"timezone","in":"query","schema":{"$ref":"#/components/schemas/Insights.TimeZone"},"required":false},{"name":"groupBy","in":"query","schema":{"$ref":"#/components/schemas/Insights.GroupBy"},"required":false},{"name":"userId","in":"query","schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Auth.UserID"}}],"description":"Usage of these people, and tasks that they own."},"required":false},{"name":"agent","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string"}}],"description":"Usage of these agent names, and tasks assigned to these agents."},"required":false},{"name":"model","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string"}}],"description":"Usage of these served models. Task numbers do not change."},"required":false},{"name":"payer","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Usage.Payer"}],"description":"Task numbers do not change."},"required":false},{"name":"kind","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Usage.Kind"}],"description":"Task numbers do not change."},"required":false},{"name":"type","in":"query","schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Insights.EventType"}}],"description":"Usage of these event types: model calls, sandbox compute or tool calls. Task numbers do not change."},"required":false},{"name":"orderBy","in":"query","schema":{"$ref":"#/components/schemas/Insights.OrderBy"},"required":false},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"Insights.Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Insights.Result"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorEncoded"}}}}},"description":"Return what a space, or the whole organization, spent and finished in a range, as one row for the whole range or one row for each bucket, space, member, agent, model or provider. 403: the organization’s usage, for a member who is not an admin or owner.","summary":"Query insights"}},"/feedback":{"post":{"tags":["feedback"],"operationId":"feedback.report","parameters":[],"security":[{"bearer":[]},{"cookie":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorEncoded"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorEncoded"}}}},"503":{"description":"UnavailableError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableErrorEncoded"}}}}},"description":"Send feedback about Ren to the Ren team: a bug, something confusing, a missing feature or something that works well. Send it when the person asks you to, or when Ren itself gets in the way of their task and the team should know. The team sees who sent it, from which organization, and, from a chat, the space, agent and chat. Nobody replies here.","summary":"Send feedback to the Ren team","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":true}}}},"components":{"schemas":{"UnauthorizedErrorEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["UnauthorizedError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"ForbiddenErrorEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["ForbiddenError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"UnavailableErrorEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["UnavailableError"]},"message":{"type":"string"},"retryAfterMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Ask again after this many milliseconds."}},"required":["_tag","message","retryAfterMs"],"additionalProperties":false},"NotFoundErrorEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["NotFoundError"]},"message":{"type":"string"},"resource":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","message"],"additionalProperties":false},"Insights.Result":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/components/schemas/Insights.Row"}}},"required":["rows"],"additionalProperties":false},"Insights.Row":{"type":"object","properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bucket start (ISO, UTC), space ID, user ID, agent name, served model or provider. Null for the whole range, for usage that names no one, and for usage in no space: calls with a member’s inference key."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user’s name, for a member row. The space’s name, for a space row: `(archived)` after an archived space, and `Private space · <owner>` for another person’s private space."},"sessions":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"calls":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"errors":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"tokens":{"$ref":"#/components/schemas/Insights.Tokens"},"cost":{"$ref":"#/components/schemas/Insights.Cost"},"computeMs":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"tasksDone":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}],"description":"Tasks done now, at their latest move to done. Null for model and provider rows."},"prsMerged":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}],"description":"Null for model and provider rows."},"prsLinked":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}],"description":"Null for model and provider rows."}},"required":["key","label","sessions","calls","errors","tokens","cost","computeMs","tasksDone","prsMerged","prsLinked"],"additionalProperties":false},"Insights.Cost":{"type":"object","properties":{"ren":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"customer":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"unpricedCalls":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"models":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"compute":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"tools":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["ren","customer","unpricedCalls","models","compute","tools"],"additionalProperties":false},"Insights.Tokens":{"type":"object","properties":{"input":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"output":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"reasoning":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"cacheRead":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"cacheWrite":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["input","output","reasoning","cacheRead","cacheWrite"],"additionalProperties":false},"Insights.OrderBy":{"type":"string","enum":["cost","tokens","calls","sessions","tasksDone"]},"Insights.EventType":{"type":"string","enum":["model.call","sandbox.compute","api.call"]},"Usage.Kind":{"type":"string","enum":["primary","compaction","title","generate"]},"Usage.Payer":{"type":"string","enum":["ren","customer"]},"Auth.UserID":{"type":"string","pattern":"^usr_"},"Insights.GroupBy":{"type":"string","enum":["none","hour","day","week","space","member","agent","model","provider"]},"Insights.TimeZone":{"type":"string"},"Space.ID":{"type":"string","pattern":"^spc_"},"InvalidRequestErrorEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["InvalidRequestError"]},"message":{"type":"string"},"field":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","message"],"additionalProperties":false},"ConflictErrorEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["ConflictError"]},"message":{"type":"string"},"resource":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","message"],"additionalProperties":false},"Infra.Applied":{"type":"object","properties":{"changes":{"type":"array","items":{"$ref":"#/components/schemas/Infra.Change"}},"lock":{"$ref":"#/components/schemas/Infra.Lock"}},"required":["changes","lock"],"additionalProperties":false},"Infra.Lock":{"type":"object","properties":{"organization":{"type":"string","minLength":1,"description":"The slug of the organization."},"resources":{"type":"object","additionalProperties":{"type":"string"},"description":"For each resource path, the version that the folder last saw."}},"required":["organization","resources"],"additionalProperties":false,"description":"The ren.lock file. Pull and apply write it; plan, apply and pull read it."},"Infra.Change":{"type":"object","properties":{"action":{"type":"string","enum":["create","update","archive"],"description":"What apply does to make Ren match the folder."},"status":{"type":"string","enum":["conflict","changed","new"],"description":"Without it, apply runs the change. conflict: changed in the folder and in Ren since the lock; apply runs it only with force. changed: changed in Ren only. new: in Ren and not in the lock. Apply skips changed and new, and pull writes them."},"kind":{"$ref":"#/components/schemas/Infra.Kind"},"path":{"type":"string","description":"Where the folder declares it: org, environments/<name>, spaces/<slug>, spaces/<slug>/agents/<name>, spaces/<slug>/uses/agents/<name>, spaces/<slug>/apps/<slug>, spaces/<slug>/schedules/<slug>, spaces/<slug>/webhooks/<slug>, spaces/<slug>/channels/<slug>, memory/<file>, spaces/<slug>/memory/<file>, deploy.yaml/profiles/<app>/<profile> or deploy.yaml/spaces/<slug>/profiles/<app>/<profile>."},"from":{"type":"string","description":"The path before a rename or a move."},"fields":{"type":"array","items":{"type":"string"},"description":"The fields that an update changes."},"values":{"type":"array","items":{"$ref":"#/components/schemas/Infra.Value"}}},"required":["action","kind","path","fields"],"additionalProperties":false},"Infra.Value":{"type":"object","properties":{"field":{"type":"string","description":"The field, with dots for nested fields: settings.instructions."},"ren":{"type":"string","description":"The value in Ren. Without it, Ren has none."},"folder":{"type":"string","description":"The value in the folder. Without it, the folder has none."}},"required":["field"],"additionalProperties":false,"description":"A field that differs between Ren and the folder, as text."},"Infra.Kind":{"type":"string","enum":["organization","environment","space","agent","membership","app","schedule","webhook","channel","profile","memory"]},"Infra.ApplyInput":{"type":"object","properties":{"spec":{"$ref":"#/components/schemas/Infra.Spec_1"},"bindings":{"$ref":"#/components/schemas/Infra.Bindings"},"lock":{"anyOf":[{"$ref":"#/components/schemas/Infra.Lock_2"},{"type":"null"}]},"digest":{"type":"string"},"force":{"anyOf":[{"type":"boolean","description":"Apply the folder over each conflict."},{"type":"null"}]}},"required":["spec","bindings","digest"],"additionalProperties":false},"Infra.Lock_2":{"type":"object","properties":{"organization":{"type":"string","minLength":1,"description":"The slug of the organization."},"resources":{"type":"object","additionalProperties":{"type":"string"},"description":"For each resource path, the version that the folder last saw."}},"required":["organization","resources"],"additionalProperties":false,"description":"Without it, the folder has not pulled yet."},"Infra.Bindings":{"type":"object","properties":{"organization":{"type":"string","minLength":1,"description":"The slug of the organization."},"profiles":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","maxLength":32,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Fixed at create. It names the profile’s servers (`<mcp>__<slug>`) and labels (`<KEY>__<SLUG>`)."},"additionalProperties":{"$ref":"#/components/schemas/Infra.ProfileDeclaration"}},"description":"For each app, its shared profiles by slug. Apply creates and changes them; it leaves a live profile that is not here as it is."},"spaces":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Infra.SpaceBindings"}}},"required":["organization"],"additionalProperties":false},"Infra.SpaceBindings":{"type":"object","properties":{"channels":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Channel.Target"}},"profiles":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Slug"}}}},"additionalProperties":false},"AppProfile.Slug":{"type":"string","maxLength":32,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Fixed at create. It names the profile’s servers (`<mcp>__<slug>`) and labels (`<KEY>__<SLUG>`)."},"Primitive.Slug_1":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"Channel.Target":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["slack"]},"channelId":{"type":"string","minLength":1}},"required":["kind","channelId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["github"]},"repository":{"type":"string","minLength":1}},"required":["kind","repository"],"additionalProperties":false}]},"Infra.ProfileDeclaration":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"allSpaces":{"type":"boolean","description":"Share it with every space. Without it, the spaces that list it."}},"required":["name"],"additionalProperties":false,"description":"A shared profile of an app."},"Infra.Spec_1":{"type":"object","properties":{"org":{"$ref":"#/components/schemas/OrganizationSettings.UpdateInput"},"memory":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},"environments":{"type":"object","propertyNames":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"The name of an environment template that environments.yaml declares."},"additionalProperties":{"$ref":"#/components/schemas/EnvironmentTemplate.Declaration"},"description":"The organization’s environment templates, by name."},"spaces":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Infra.SpaceDeclaration"}}},"required":["org","spaces"],"additionalProperties":false},"Infra.SpaceDeclaration":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string"},"brainScope":{"$ref":"#/components/schemas/Brain.Scope_1"},"brain":{"$ref":"#/components/schemas/Infra.SpaceBrain"},"hand":{"$ref":"#/components/schemas/Infra.SpaceHand"},"renamedFrom":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"},"description":"Earlier names. Apply renames the live row that has one of them, so its history stays."},"settings":{"$ref":"#/components/schemas/Settings.Info"},"agents":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"object","properties":{"description":{"type":"string"},"isSubagent":{"type":"boolean"},"settings":{"$ref":"#/components/schemas/Settings.Info"},"renamedFrom":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"},"description":"Earlier names. Apply renames the live row that has one of them, so its history stays."}},"additionalProperties":false}},"apps":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/App.Declaration"}},"schedules":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Schedule.Declaration"}},"webhooks":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Webhook.Declaration"}},"channels":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Channel.Declaration"}},"memory":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},"factory":{"type":"object","properties":{"maxHandoffs":{"type":"integer","minimum":1,"maximum":100,"description":"Handoffs before a person decides."},"agents":{"type":"array","items":{"type":"object","properties":{"agent":{"$ref":"#/components/schemas/Agent.Name"},"maxRuns":{"type":"integer","minimum":1,"maximum":20,"description":"Runs of this agent before a person decides."},"finish":{"type":"boolean","enum":[true],"description":"It can finish the task: the factory’s work is done and the task waits for a person or a merge."},"to":{"type":"array","items":{"$ref":"#/components/schemas/Infra.FactoryEdgeDeclaration"}}},"required":["agent"],"additionalProperties":false},"maxItems":64}},"required":["agents"],"additionalProperties":false,"description":"The space’s factory, with agent names. Without it, the factory has no agents."},"uses":{"$ref":"#/components/schemas/Infra.Uses"}},"required":["name"],"additionalProperties":false},"Infra.Uses":{"type":"object","properties":{"agents":{"type":"array","items":{"$ref":"#/components/schemas/Agent.Name"}}},"additionalProperties":false},"Agent.Name":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"Infra.FactoryEdgeDeclaration":{"type":"object","properties":{"agent":{"$ref":"#/components/schemas/Agent.Name"},"max":{"type":"integer","minimum":1,"maximum":10,"description":"Handoffs on this edge before a person decides."},"else":{"$ref":"#/components/schemas/Agent.Name"},"start":{"$ref":"#/components/schemas/Factory.StartMode"}},"required":["agent"],"additionalProperties":false},"Factory.StartMode":{"type":"string","enum":["new","continue"]},"Memory.SafePathEncoded":{"type":"string","minLength":1},"Channel.Declaration":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["slack"]},"purpose":{"type":"string","minLength":1},"agent":{"$ref":"#/components/schemas/Agent.Name_3"},"fallback":{"type":"boolean","description":"Run a sender that Ren cannot match to a space member as the mapping’s fallback user. Apply keeps that user while they can act in the mapping’s space, and otherwise, as for a new mapping, uses the person who applies the folder. On by default, off by default for a public GitHub repository."},"triggers":{"type":"object","propertyNames":{"type":"string","minLength":1,"description":"A provider’s event that starts a turn with no mention of Ren, such as GitHub’s pull_request_ready."},"additionalProperties":{"type":"object","properties":{"prompt":{"type":"string","minLength":1}},"additionalProperties":false},"description":"The provider’s triggers to turn on, such as GitHub’s pull_request_ready. All are off by default."}},"required":["kind","purpose"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["github"]},"purpose":{"type":"string","minLength":1},"agent":{"$ref":"#/components/schemas/Agent.Name_3"},"fallback":{"type":"boolean","description":"Run a sender that Ren cannot match to a space member as the mapping’s fallback user. Apply keeps that user while they can act in the mapping’s space, and otherwise, as for a new mapping, uses the person who applies the folder. On by default, off by default for a public GitHub repository."},"triggers":{"type":"object","propertyNames":{"type":"string","minLength":1,"description":"A provider’s event that starts a turn with no mention of Ren, such as GitHub’s pull_request_ready."},"additionalProperties":{"type":"object","properties":{"prompt":{"type":"string","minLength":1}},"additionalProperties":false},"description":"The provider’s triggers to turn on, such as GitHub’s pull_request_ready. All are off by default."}},"required":["kind","purpose"],"additionalProperties":false}],"description":"A channel that maps a place to a space. The folder maps the channels that a person installed in Ren."},"Channel.TriggerID":{"type":"string","minLength":1,"description":"A provider’s event that starts a turn with no mention of Ren, such as GitHub’s pull_request_ready."},"Agent.Name_3":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Without it, the channel reaches the ren agent."},"Webhook.Declaration":{"anyOf":[{"$ref":"#/components/schemas/Webhook.PresetDeclaration"},{"$ref":"#/components/schemas/Webhook.CustomDeclaration"}],"description":"A webhook in webhooks.yaml. Its URL and signing secret stay live state."},"Webhook.CustomDeclaration":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"Without it, the slug."},"agent":{"$ref":"#/components/schemas/Agent.Name_2"},"message":{"$ref":"#/components/schemas/Webhook.MessageEncoded"},"signature":{"$ref":"#/components/schemas/Webhook.Signature"},"handshake":{"$ref":"#/components/schemas/Webhook.Expression"},"signedHandshake":{"$ref":"#/components/schemas/Webhook.Expression_1"},"filter":{"$ref":"#/components/schemas/Webhook.Expression_2"},"eventId":{"$ref":"#/components/schemas/Webhook.Expression_3"},"threadKey":{"$ref":"#/components/schemas/Webhook.Expression_4"},"title":{"$ref":"#/components/schemas/Webhook.Expression_5"},"mode":{"$ref":"#/components/schemas/Webhook.Mode"}},"required":["message"],"additionalProperties":false},"Webhook.Mode":{"type":"string","enum":["listening","live"],"description":"`listening` (shown as Debug): Ren records each request and starts no session. `live`: the parser starts or continues sessions."},"Webhook.Expression_5":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":1000,"description":"A string: the title of a new session."},"Webhook.Expression_4":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":1000,"description":"A string. Requests with the same value continue one session, such as an issue ID or an email address."},"Webhook.Expression_3":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":1000,"description":"A string that is unique per delivery, usually a delivery-ID header, such as the linear-delivery header of Linear. Ren ignores a request whose value it has already seen. Never use a timestamp."},"Webhook.Expression_2":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":1000,"description":"A bool. A request starts or continues a session only when it is true. For example: `body.action` is create. Without it, every request does."},"Webhook.Expression_1":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":1000,"description":"After the signature check, with sign(text): a map answers the request; null goes on."},"Webhook.Expression":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":1000,"description":"The answer to a provider that checks the URL before it sends events: a map { status, contentType?, body }. Null for other requests. Runs before the signature check."},"Webhook.Signature":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["none"]}},"required":["kind"],"additionalProperties":false,"description":"The URL token only."},{"type":"object","properties":{"kind":{"type":"string","enum":["header"]},"header":{"$ref":"#/components/schemas/Webhook.HeaderName"}},"required":["kind","header"],"additionalProperties":false,"description":"The header is equal to the signing secret."},{"type":"object","properties":{"kind":{"type":"string","enum":["hmac"]},"header":{"$ref":"#/components/schemas/Webhook.HeaderName"},"encoding":{"type":"string","enum":["hex","base64"]},"prefix":{"type":"string","description":"Text before the digest, such as sha256=."}},"required":["kind","header","encoding"],"additionalProperties":false,"description":"HMAC-SHA256 of the body with the signing secret, in the header."},{"type":"object","properties":{"kind":{"type":"string","enum":["standard"]}},"required":["kind"],"additionalProperties":false,"description":"The Standard Webhooks spec (Svix, Clerk, Resend). Refuses a request older than 5 minutes."},{"type":"object","properties":{"kind":{"type":"string","enum":["stripe"]}},"required":["kind"],"additionalProperties":false,"description":"The stripe-signature header. Refuses a request older than 5 minutes."}],"description":"How Ren checks the sender. Use `hmac` with the provider’s signature header when the provider signs requests. Use `none` only when the provider cannot sign."},"Webhook.HeaderName":{"type":"string","pattern":"^[a-z0-9-]+$"},"Webhook.MessageEncoded":{"type":"string"},"Agent.Name_2":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Without it, a new chat gets the space’s default settings."},"Webhook.PresetDeclaration":{"type":"object","properties":{"app":{"$ref":"#/components/schemas/Primitive.Slug_9"},"preset":{"$ref":"#/components/schemas/Primitive.Slug_10"},"agent":{"$ref":"#/components/schemas/Agent.Name_2"},"mode":{"$ref":"#/components/schemas/Webhook.Mode"}},"required":["app","preset"],"additionalProperties":false},"Primitive.Slug_10":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"The key of the preset in the app’s webhooks."},"Primitive.Slug_9":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"The slug of an app that the space reaches."},"Schedule.Declaration":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"Without it, the slug."},"agent":{"$ref":"#/components/schemas/Agent.Name_1"},"cron":{"$ref":"#/components/schemas/Schedule.Cron"},"timeZone":{"$ref":"#/components/schemas/Schedule.TimeZone"},"message":{"$ref":"#/components/schemas/Schedule.MessageEncoded"},"until":{"type":"string"},"enabled":{"type":"boolean"}},"required":["cron","timeZone","message"],"additionalProperties":false},"Schedule.MessageEncoded":{"type":"string"},"Schedule.TimeZone":{"type":"string"},"Schedule.Cron":{"type":"string"},"Agent.Name_1":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Without it, the space’s default settings."},"App.Declaration":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"icon":{"$ref":"#/components/schemas/Primitive.HttpsUrl"},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Requirement"}},"environment":{"$ref":"#/components/schemas/Packages.Setup"},"skills":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Skill.Declaration"}},"mcps":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Mcp.Declaration"}},"dependsOn":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"}},"webhooks":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Webhook.Preset"},"description":"Webhooks that a space can turn on. Each one reads its name, message and parser from here."}},"required":["name","description"],"additionalProperties":false},"Webhook.Preset":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"message":{"$ref":"#/components/schemas/Webhook.MessageEncoded"},"signature":{"$ref":"#/components/schemas/Webhook.Signature"},"handshake":{"$ref":"#/components/schemas/Webhook.Expression"},"signedHandshake":{"$ref":"#/components/schemas/Webhook.Expression_1"},"filter":{"$ref":"#/components/schemas/Webhook.Expression_2"},"eventId":{"$ref":"#/components/schemas/Webhook.Expression_3"},"threadKey":{"$ref":"#/components/schemas/Webhook.Expression_4"},"title":{"$ref":"#/components/schemas/Webhook.Expression_5"},"secret":{"$ref":"#/components/schemas/Webhook.SecretSource"},"setup":{"type":"string","minLength":1,"description":"The steps after turn-on, in Markdown."}},"required":["name","description","message","secret","setup"],"additionalProperties":false,"description":"A webhook that an app declares. A space turns it on; its name, message and parser stay in the app."},"Webhook.SecretSource":{"type":"string","enum":["ren","provider"],"description":"`ren`: Ren makes the signing secret when the preset is turned on. `provider`: the person pastes it."},"Mcp.Declaration":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"transport":{"$ref":"#/components/schemas/Mcp.Transport"},"auth":{"$ref":"#/components/schemas/Mcp.Auth"},"timeouts":{"$ref":"#/components/schemas/Mcp.Timeouts"},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Requirement"}}},"required":["name","description","transport","auth"],"additionalProperties":false},"Credential.Requirement":{"anyOf":[{"$ref":"#/components/schemas/Credential.Env"},{"$ref":"#/components/schemas/Credential.Secret"},{"$ref":"#/components/schemas/Credential.OAuthApp"},{"$ref":"#/components/schemas/Credential.Text"},{"$ref":"#/components/schemas/Credential.Select"}]},"Credential.Select":{"type":"object","properties":{"kind":{"type":"string","enum":["select"]},"name":{"$ref":"#/components/schemas/Credential.FieldName"},"description":{"type":"string"},"optional":{"type":"boolean","description":"An optional credential is not asked for at install. A feature that needs it fails until it is connected."},"message":{"type":"string","minLength":1},"options":{"type":"array","prefixItems":[{"$ref":"#/components/schemas/Credential.Option"}],"minItems":1,"items":{"$ref":"#/components/schemas/Credential.Option"}},"when":{"$ref":"#/components/schemas/Credential.When"}},"required":["kind","name","message","options"],"additionalProperties":false},"Credential.When":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/Credential.FieldName"},"op":{"type":"string","enum":["eq","neq"]},"value":{"type":"string"}},"required":["name","op","value"],"additionalProperties":false},"Credential.FieldName":{"type":"string","maxLength":64,"pattern":"^[a-z][A-Za-z0-9_]*$","allOf":[{"pattern":"^(?!token$)"},{"pattern":"^(?!accessToken$)"},{"pattern":"^(?!username$)"},{"pattern":"^(?!password$)"},{"pattern":"^(?!basic$)"}]},"Credential.Option":{"type":"object","properties":{"label":{"type":"string","minLength":1},"value":{"type":"string"},"hint":{"type":"string"}},"required":["label","value"],"additionalProperties":false},"Credential.Text":{"type":"object","properties":{"kind":{"type":"string","enum":["text"]},"name":{"$ref":"#/components/schemas/Credential.FieldName"},"description":{"type":"string"},"optional":{"type":"boolean","description":"An optional credential is not asked for at install. A feature that needs it fails until it is connected."},"message":{"type":"string","minLength":1},"placeholder":{"type":"string"},"when":{"$ref":"#/components/schemas/Credential.When"}},"required":["kind","name","message"],"additionalProperties":false},"Credential.OAuthApp":{"type":"object","properties":{"kind":{"type":"string","enum":["oauth_app"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"optional":{"type":"boolean","description":"An optional credential is not asked for at install. A feature that needs it fails until it is connected."}},"required":["kind","name"],"additionalProperties":false},"Credential.Secret":{"type":"object","properties":{"kind":{"type":"string","enum":["secret"]},"name":{"$ref":"#/components/schemas/Credential.FieldName"},"description":{"type":"string"},"optional":{"type":"boolean","description":"An optional credential is not asked for at install. A feature that needs it fails until it is connected."}},"required":["kind","name"],"additionalProperties":false},"Credential.Env":{"type":"object","properties":{"kind":{"type":"string","enum":["env"]},"name":{"$ref":"#/components/schemas/Credential.AppEnvName"},"description":{"type":"string"},"optional":{"type":"boolean","description":"An optional credential is not asked for at install. A feature that needs it fails until it is connected."}},"required":["kind","name"],"additionalProperties":false},"Credential.AppEnvName":{"type":"string","maxLength":94,"pattern":"^[A-Z_][A-Z0-9_]*$","allOf":[{"pattern":"^(?!.*__)","description":"An env key of an app. Each profile gets it with its own suffix: `<KEY>__<PROFILE>`."}]},"Mcp.Timeouts":{"type":"object","properties":{"startup":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0},"catalog":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0},"execution":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0}},"additionalProperties":false,"description":"Independent stage timeouts in milliseconds."},"Mcp.Auth":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["oauth"]},"authorizationEndpoint":{"$ref":"#/components/schemas/Primitive.HttpsUrl_1"},"tokenEndpoint":{"$ref":"#/components/schemas/Primitive.HttpsUrl_2"},"scopes":{"type":"array","items":{"type":"string","minLength":1},"description":"Asked for when neither the server’s challenge nor its metadata names scopes."},"tokenEndpointAuth":{"type":"string","enum":["client_secret_basic","client_secret_post","none"]},"client":{"type":"object","properties":{"clientId":{"type":"string","minLength":1},"resource":{"$ref":"#/components/schemas/Primitive.HttpsUrl"},"redirectUri":{"$ref":"#/components/schemas/Primitive.HttpsUrl"}},"required":["clientId"],"additionalProperties":false,"description":"A partner’s OAuth client that Ren borrows, instead of registering its own."}},"required":["type","tokenEndpointAuth"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bearer"]},"credential":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","credential"],"additionalProperties":false,"description":"Sends the credential as `Authorization: Bearer <value>`."},{"type":"object","properties":{"type":{"type":"string","enum":["header"]},"name":{"type":"string","minLength":1},"credential":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","name","credential"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["query"]},"name":{"type":"string","minLength":1},"credential":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","name","credential"],"additionalProperties":false,"description":"Adds the credential to the URL’s query string as `<name>=<value>`."},{"type":"object","properties":{"type":{"type":"string","enum":["basic"]},"username":{"$ref":"#/components/schemas/Credential.Name"},"password":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","username","password"],"additionalProperties":false}]},"Credential.Name":{"anyOf":[{"$ref":"#/components/schemas/Credential.EnvName"},{"$ref":"#/components/schemas/Credential.FieldName"}],"description":"The name of a required credential: an env name or a field name."},"Credential.EnvName":{"type":"string","maxLength":128,"pattern":"^[A-Z_][A-Z0-9_]*$"},"Primitive.HttpsUrl":{"type":"string"},"Primitive.HttpsUrl_2":{"type":"string"},"Primitive.HttpsUrl_1":{"type":"string"},"Mcp.Transport":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["remote"]},"url":{"$ref":"#/components/schemas/Primitive.HttpsUrl"}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["local"]},"command":{"type":"array","prefixItems":[{"type":"string","minLength":1}],"minItems":1,"items":{"type":"string","minLength":1}},"cwd":{"type":"string","minLength":1},"env":{"type":"object","propertyNames":{"type":"string","maxLength":128,"pattern":"^[A-Z_][A-Z0-9_]*$"},"additionalProperties":{"type":"string"},"description":"Literal values, stored in the release and shown to every reader of it. Never a secret: a secret is a required credential."}},"required":["type","command"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["provider"]},"provider":{"$ref":"#/components/schemas/Credential.Provider"},"integration":{"type":"string","minLength":1,"description":"The provider’s name for the service, such as a Composio toolkit or a Pipedream app."}},"required":["type","provider","integration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["managed"]},"server":{"$ref":"#/components/schemas/Primitive.Slug_2"},"replaces":{"$ref":"#/components/schemas/Primitive.Slug_3"}},"required":["type","server"],"additionalProperties":false,"description":"An MCP that Ren runs on its own provider account, paid with Ren credits."}]},"Primitive.Slug_3":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"An MCP of the same app with auth. When a reached profile has its credential, this MCP is left out."},"Primitive.Slug_2":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"The managed MCP of the integrations service that Ren calls."},"Credential.Provider":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"The managed MCP provider that holds the account of a `route` credential."},"Skill.Declaration":{"anyOf":[{"$ref":"#/components/schemas/Skill.Content"},{"$ref":"#/components/schemas/Skill.Upstream"}]},"Skill.Upstream":{"type":"object","properties":{"type":{"type":"string","enum":["upstream"]},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.SkillRequirement"}},"upstream":{"type":"object","properties":{"url":{"$ref":"#/components/schemas/Primitive.HttpsUrl"},"ref":{"type":"string","minLength":1,"description":"A Git branch, tag or commit. Omission follows the default branch. A branch or the default branch is read again by the brain: its new commits change the skill without a new release or catalog fingerprint. Name a commit to fix the content."},"path":{"$ref":"#/components/schemas/Skill.SourceDirectory"}},"required":["url","path"],"additionalProperties":false}},"required":["type","upstream"],"additionalProperties":false},"Skill.SourceDirectory":{"type":"string"},"Credential.SkillRequirement":{"anyOf":[{"$ref":"#/components/schemas/Credential.Env"},{"$ref":"#/components/schemas/Credential.OAuthApp"}]},"Skill.Content":{"type":"object","properties":{"type":{"type":"string","enum":["content"]},"description":{"type":"string","minLength":1},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.SkillRequirement"}},"instructions":{"type":"string","description":"The body of SKILL.md, after its frontmatter."},"files":{"type":"object","additionalProperties":{"type":"string"},"description":"The other files of the skill folder, by path relative to it."}},"required":["type","description","instructions"],"additionalProperties":false},"Packages.Setup":{"type":"object","properties":{"packages":{"$ref":"#/components/schemas/Packages.Info"},"buildCommands":{"type":"array","items":{"type":"string","minLength":1,"maxLength":4096},"maxItems":50,"title":"Build commands","description":"Run in order after the packages. One per line.","examples":[["corepack enable"]]}},"additionalProperties":false,"description":"What a machine installs, then the commands it runs, in order."},"Packages.Info":{"type":"object","properties":{"apt":{"type":"array","items":{"type":"string","minLength":1},"title":"APT packages","examples":[["ffmpeg"]]},"npm":{"type":"array","items":{"type":"string","minLength":1},"title":"npm packages","examples":[["typescript"]]},"pip":{"type":"array","items":{"type":"string","minLength":1},"title":"pip packages","examples":[["requests"]]},"go":{"type":"array","items":{"type":"string","minLength":1},"title":"Go modules","examples":[["golang.org/x/tools/gopls@latest"]]}},"additionalProperties":false,"title":"Packages","description":"One per line."},"Settings.Info":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"$ref":"#/components/schemas/Session.Model"},"defaultModels":{"$ref":"#/components/schemas/ModelTypes.Defaults"},"steps":{"type":"integer","minimum":1,"maximum":1000,"description":"The most model iterations in one run of an agent. Then its tools stop and it must answer. Without it, 100."},"permissions":{"$ref":"#/components/schemas/Permission.RuleList"},"references":{"$ref":"#/components/schemas/Reference.List"}},"additionalProperties":false},"Reference.List":{"type":"array","items":{"$ref":"#/components/schemas/Reference.Info"}},"Reference.Info":{"type":"object","properties":{"alias":{"$ref":"#/components/schemas/Reference.Alias"},"repository":{"$ref":"#/components/schemas/Reference.Repository"},"branch":{"$ref":"#/components/schemas/Reference.Branch"},"description":{"$ref":"#/components/schemas/Reference.Description"}},"required":["alias","repository","description"],"additionalProperties":false},"Reference.Description":{"type":"string","minLength":1,"description":"What the repository holds. The agent sees a reference only through its description (R24)."},"Reference.Branch":{"type":"string","pattern":"^(?!-)(?!.*\\.\\.)(?!.*\\/\\/)(?!.*@\\{)(?!.*\\.lock$)[^\\s~^:?*[\\\\]+(?<![/.])$"},"Reference.Repository":{"type":"string","minLength":1,"pattern":"^https:\\/\\/[^/\\s]+(?:\\/[^/\\s]+){2,}$"},"Reference.Alias":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[^/\\\\\\s`,:]+$"},"Permission.RuleList":{"type":"array","items":{"$ref":"#/components/schemas/Permission.Rule"}},"Permission.Rule":{"type":"object","properties":{"action":{"type":"string","minLength":1},"resource":{"type":"string","minLength":1},"effect":{"$ref":"#/components/schemas/Permission.RuleEffect"}},"required":["action","resource","effect"],"additionalProperties":false},"Permission.RuleEffect":{"type":"string","enum":["ask","deny"]},"ModelTypes.Defaults":{"type":"object","properties":{"image_generation":{"$ref":"#/components/schemas/ModelTypes.ModelRef"},"audio_transcription":{"$ref":"#/components/schemas/ModelTypes.ModelRef"},"decisions":{"$ref":"#/components/schemas/ModelTypes.ModelRef"},"audio_speech":{"$ref":"#/components/schemas/ModelTypes.ModelRef"},"realtime":{"$ref":"#/components/schemas/ModelTypes.ModelRef"},"video_generation":{"$ref":"#/components/schemas/ModelTypes.ModelRef"}},"additionalProperties":false},"ModelTypes.ModelRef":{"type":"object","properties":{"providerId":{"type":"string","minLength":1,"description":"The endpoint ID."},"modelId":{"type":"string","minLength":1,"description":"The model ID on the endpoint."}},"required":["providerId","modelId"],"additionalProperties":false},"Session.Model":{"type":"object","properties":{"endpointId":{"type":"string","minLength":1},"modelId":{"type":"string","minLength":1},"variant":{"type":"string","minLength":1}},"required":["endpointId","modelId"],"additionalProperties":false},"Infra.SpaceHand":{"anyOf":[{"type":"object","properties":{"placement":{"type":"string","enum":["colocated"]}},"required":["placement"],"additionalProperties":false},{"type":"object","properties":{"placement":{"type":"string","enum":["remote"]},"environment":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"The name of an environment template that environments.yaml declares."}},"required":["placement","environment"],"additionalProperties":false},{"type":"object","properties":{"placement":{"type":"string","enum":["none"]}},"required":["placement"],"additionalProperties":false}],"description":"Without it, colocated."},"Infra.SpaceBrain":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/EnvironmentProvider.ID_1"},"environment":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"A template of the brain provider. Without it, Ren’s system image."}},"additionalProperties":false,"description":"Space.BrainMachine, with the template by name."},"EnvironmentProvider.ID_1":{"type":"string","minLength":1,"description":"Without it, the deployment’s brain provider."},"Brain.Scope_1":{"type":"string","enum":["session","space"],"description":"Without it, space."},"EnvironmentTemplate.Declaration":{"type":"object","properties":{"description":{"type":"string"},"provider":{"$ref":"#/components/schemas/EnvironmentProvider.ID"},"config":{"description":"The settings of the provider. Its schema is in the provider list."},"sessionsPerEnvironment":{"type":"integer","minimum":1,"maximum":100},"networking":{"$ref":"#/components/schemas/EnvironmentTemplate.Networking_1"}},"required":["provider","config"],"additionalProperties":false},"EnvironmentTemplate.Networking_1":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["unrestricted"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["limited"]},"allowPackageManagers":{"type":"boolean","description":"Allow the hosts of npm, PyPI, the Debian and Ubuntu mirrors and the Go module proxy."},"allowMcpServers":{"type":"boolean","description":"Allow the hosts of the MCP servers of the space."},"allowedHosts":{"type":"array","items":{"$ref":"#/components/schemas/HostName.Pattern"},"maxItems":100}},"required":["type","allowPackageManagers","allowMcpServers","allowedHosts"],"additionalProperties":false}],"description":"Where a machine of the template can connect. A limited machine always reaches the hosts of the credentials of its space."},"HostName.Pattern":{"type":"string","maxLength":253,"pattern":"^(?:\\*\\.)?(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z][a-z0-9-]*[a-z0-9]$","description":"A host name, or `*.<domain>` for its subdomains."},"EnvironmentProvider.ID":{"type":"string","minLength":1},"OrganizationSettings.UpdateInput":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/Settings.Info"}},"required":["settings"],"additionalProperties":false},"Infra.Plan":{"type":"object","properties":{"changes":{"type":"array","items":{"$ref":"#/components/schemas/Infra.Change"}},"problems":{"type":"array","items":{"$ref":"#/components/schemas/Infra.Problem"},"description":"A plan with problems cannot be applied."},"digest":{"type":"string","description":"Apply refuses the plan when the digest has changed."},"lock":{"$ref":"#/components/schemas/Infra.Lock_3"}},"required":["changes","problems","digest","lock"],"additionalProperties":false},"Infra.Lock_3":{"type":"object","properties":{"organization":{"type":"string","minLength":1,"description":"The slug of the organization."},"resources":{"type":"object","additionalProperties":{"type":"string"},"description":"For each resource path, the version that the folder last saw."}},"required":["organization","resources"],"additionalProperties":false,"description":"The lock with the version of each resource that the folder and Ren agree on."},"Infra.Problem":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false},"Infra.PlanInput":{"type":"object","properties":{"spec":{"$ref":"#/components/schemas/Infra.Spec_1"},"bindings":{"$ref":"#/components/schemas/Infra.Bindings"},"lock":{"anyOf":[{"$ref":"#/components/schemas/Infra.Lock_2"},{"type":"null"}]}},"required":["spec","bindings"],"additionalProperties":false},"Infra.Pulled":{"type":"object","properties":{"bindings":{"type":"object","properties":{"organization":{"type":"string","minLength":1,"description":"The slug of the organization."},"profiles":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","maxLength":32,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Fixed at create. It names the profile’s servers (`<mcp>__<slug>`) and labels (`<KEY>__<SLUG>`)."},"additionalProperties":{"$ref":"#/components/schemas/Infra.ProfileDeclaration"}},"description":"For each app, its shared profiles by slug. Apply creates and changes them; it leaves a live profile that is not here as it is."},"spaces":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Infra.PulledBindings"}}},"required":["organization","profiles","spaces"],"additionalProperties":false},"spec":{"type":"object","properties":{"org":{"$ref":"#/components/schemas/OrganizationSettings.UpdateInput"},"memory":{"$ref":"#/components/schemas/Memory.Files"},"environments":{"type":"object","propertyNames":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"The name of an environment template that environments.yaml declares."},"additionalProperties":{"$ref":"#/components/schemas/EnvironmentTemplate.Declaration"},"description":"The organization’s environment templates, by name."},"spaces":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Infra.PulledSpace"}}},"required":["org","environments","spaces"],"additionalProperties":false},"lock":{"$ref":"#/components/schemas/Infra.Lock_1"},"write":{"type":"array","items":{"type":"string"},"description":"The resources that changed only in Ren: write them."},"remove":{"type":"array","items":{"type":"string"},"description":"The resources that Ren archived and the folder did not change: remove them."},"conflicts":{"type":"array","items":{"$ref":"#/components/schemas/Infra.Change"},"description":"The resources that changed in the folder and in Ren. With any, pull writes nothing."}},"required":["bindings","spec","lock","write","remove","conflicts"],"additionalProperties":false,"description":"The part of the organization that a folder manages today: organization settings and memory, environment templates, shared spaces with their runtime, agents, apps, schedules, channels and memory, the organization’s shared profiles, and the channel and profile bindings of each space."},"Infra.Lock_1":{"type":"object","properties":{"organization":{"type":"string","minLength":1,"description":"The slug of the organization."},"resources":{"type":"object","additionalProperties":{"type":"string"},"description":"For each resource path, the version that the folder last saw."}},"required":["organization","resources"],"additionalProperties":false,"description":"The lock for the folder once pull writes it."},"Infra.PulledSpace":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"brainScope":{"$ref":"#/components/schemas/Brain.Scope_1"},"brain":{"$ref":"#/components/schemas/Infra.SpaceBrain"},"hand":{"$ref":"#/components/schemas/Infra.SpaceHand"},"settings":{"$ref":"#/components/schemas/Settings.Info"},"factory":{"$ref":"#/components/schemas/Infra.FactoryDeclaration"},"agents":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Agent.Declaration"}},"apps":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Infra.PulledApp"}},"schedules":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Infra.PulledSchedule"}},"webhooks":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Webhook.Declaration"}},"channels":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Channel.Declaration"}},"memory":{"$ref":"#/components/schemas/Memory.Files"},"uses":{"$ref":"#/components/schemas/Infra.Uses"}},"required":["name","settings","agents","apps","schedules","webhooks","channels","uses"],"additionalProperties":false},"Memory.Files":{"type":"object","additionalProperties":{"type":"string"},"description":"The files of one memory, by path relative to its root: the same shape as a skill’s files."},"Infra.PulledSchedule":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"Without it, the slug."},"agent":{"$ref":"#/components/schemas/Agent.Name_1"},"cron":{"type":"string"},"timeZone":{"type":"string"},"message":{"$ref":"#/components/schemas/Schedule.MessageEncoded"},"until":{"type":"string"},"enabled":{"type":"boolean"}},"required":["cron","timeZone","message"],"additionalProperties":false,"description":"A Schedule.Declaration, as the live schedule has it."},"Infra.PulledApp":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Requirement"}},"mcps":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Mcp.Info"}},"dependsOn":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"}},"webhooks":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Webhook.Preset"},"description":"Webhooks that a space can turn on. Each one reads its name, message and parser from here."},"skills":{"$ref":"#/components/schemas/App.Skills"},"icon":{"type":"string"},"environment":{"$ref":"#/components/schemas/Packages.Setup"}},"required":["name","description","mcps","skills"],"additionalProperties":false,"description":"An App.Declaration, as the live app has it."},"App.Skills":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Skill.Info"},"description":"An app’s skills with their instructions and files, by slug."},"Skill.Info":{"anyOf":[{"$ref":"#/components/schemas/Skill.Content"},{"type":"object","properties":{"type":{"type":"string","enum":["upstream"]},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.SkillRequirement"}},"upstream":{"type":"object","properties":{"url":{"type":"string"},"ref":{"type":"string","minLength":1,"description":"A Git branch, tag or commit. Omission follows the default branch. A branch or the default branch is read again by the brain: its new commits change the skill without a new release or catalog fingerprint. Name a commit to fix the content."},"path":{"type":"string"}},"required":["url","path"],"additionalProperties":false}},"required":["type","upstream"],"additionalProperties":false}]},"Mcp.Info":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"transport":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["remote"]},"url":{"type":"string"}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["local"]},"command":{"type":"array","prefixItems":[{"type":"string","minLength":1}],"minItems":1,"items":{"type":"string","minLength":1}},"cwd":{"type":"string","minLength":1},"env":{"type":"object","propertyNames":{"type":"string","maxLength":128,"pattern":"^[A-Z_][A-Z0-9_]*$"},"additionalProperties":{"type":"string"},"description":"Literal values, stored in the release and shown to every reader of it. Never a secret: a secret is a required credential."}},"required":["type","command"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["provider"]},"provider":{"$ref":"#/components/schemas/Credential.Provider"},"integration":{"type":"string","minLength":1,"description":"The provider’s name for the service, such as a Composio toolkit or a Pipedream app."}},"required":["type","provider","integration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["managed"]},"server":{"$ref":"#/components/schemas/Primitive.Slug_2"},"replaces":{"$ref":"#/components/schemas/Primitive.Slug_3"}},"required":["type","server"],"additionalProperties":false,"description":"An MCP that Ren runs on its own provider account, paid with Ren credits."}]},"auth":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["oauth"]},"authorizationEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","minLength":1},"description":"Asked for when neither the server’s challenge nor its metadata names scopes."},"tokenEndpointAuth":{"type":"string","enum":["client_secret_basic","client_secret_post","none"]},"client":{"type":"object","properties":{"clientId":{"type":"string","minLength":1},"resource":{"type":"string"},"redirectUri":{"type":"string"}},"required":["clientId"],"additionalProperties":false}},"required":["type","tokenEndpointAuth"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bearer"]},"credential":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","credential"],"additionalProperties":false,"description":"Sends the credential as `Authorization: Bearer <value>`."},{"type":"object","properties":{"type":{"type":"string","enum":["header"]},"name":{"type":"string","minLength":1},"credential":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","name","credential"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["query"]},"name":{"type":"string","minLength":1},"credential":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","name","credential"],"additionalProperties":false,"description":"Adds the credential to the URL’s query string as `<name>=<value>`."},{"type":"object","properties":{"type":{"type":"string","enum":["basic"]},"username":{"$ref":"#/components/schemas/Credential.Name"},"password":{"$ref":"#/components/schemas/Credential.Name"}},"required":["type","username","password"],"additionalProperties":false}]},"timeouts":{"$ref":"#/components/schemas/Mcp.Timeouts"},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Requirement"}}},"required":["name","description","transport","auth"],"additionalProperties":false},"Agent.Declaration":{"type":"object","properties":{"description":{"type":"string"},"isSubagent":{"type":"boolean"},"settings":{"$ref":"#/components/schemas/Settings.Info"}},"additionalProperties":false},"Infra.FactoryDeclaration":{"type":"object","properties":{"maxHandoffs":{"type":"integer","minimum":1,"maximum":100,"description":"Handoffs before a person decides."},"agents":{"type":"array","items":{"type":"object","properties":{"agent":{"$ref":"#/components/schemas/Agent.Name"},"maxRuns":{"type":"integer","minimum":1,"maximum":20,"description":"Runs of this agent before a person decides."},"finish":{"type":"boolean","enum":[true],"description":"It can finish the task: the factory’s work is done and the task waits for a person or a merge."},"to":{"type":"array","items":{"$ref":"#/components/schemas/Infra.FactoryEdgeDeclaration"}}},"required":["agent"],"additionalProperties":false},"maxItems":64}},"required":["agents"],"additionalProperties":false,"description":"The space’s factory, with agent names. Without it, the factory has no agents."},"Infra.PulledBindings":{"type":"object","properties":{"channels":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Channel.Target"}},"profiles":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Slug"}}}},"additionalProperties":false},"Infra.PullInput":{"type":"object","properties":{"spec":{"anyOf":[{"$ref":"#/components/schemas/Infra.Spec"},{"type":"null"}]},"bindings":{"anyOf":[{"$ref":"#/components/schemas/Infra.Bindings"},{"type":"null"}]},"lock":{"anyOf":[{"$ref":"#/components/schemas/Infra.Lock"},{"type":"null"}]}},"additionalProperties":false},"Infra.Spec":{"type":"object","properties":{"org":{"$ref":"#/components/schemas/OrganizationSettings.UpdateInput"},"memory":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},"environments":{"type":"object","propertyNames":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256,"description":"The name of an environment template that environments.yaml declares."},"additionalProperties":{"$ref":"#/components/schemas/EnvironmentTemplate.Declaration"},"description":"The organization’s environment templates, by name."},"spaces":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Infra.SpaceDeclaration"}}},"required":["org","spaces"],"additionalProperties":false},"Auth.SignInProviders":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Auth.SignInProvider"}}},"required":["items"],"additionalProperties":false},"Auth.SignInProvider":{"type":"string","enum":["google","github","slack"]},"GitHost.Listing":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/GitHost.Kind"},"installed":{"type":"boolean"},"repositories":{"type":"array","items":{"$ref":"#/components/schemas/GitHost.Repository"}}},"required":["kind","installed","repositories"],"additionalProperties":false},"GitHost.Repository":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/GitHost.Kind"},"url":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["kind","url","name"],"additionalProperties":false},"GitHost.Kind":{"anyOf":[{"type":"string","enum":["github"]}]},"ChannelPlace.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChannelPlace.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"ChannelPlace.Info":{"type":"object","properties":{"id":{"type":"string","description":"The provider’s id of the place: a Slack channel, a Linear project, a GitHub repository."},"name":{"type":"string"},"private":{"type":"boolean"},"anyoneCanWrite":{"type":"boolean","description":"People outside the install’s workspace can write there, as on a public GitHub repository. A new mapping of an open place starts with the fallback off."},"description":{"type":"string","description":"The provider’s description of the place, such as a GitHub repository’s."},"url":{"type":"string","description":"The web address of the place, such as https://github.com/acme/docs."},"mapping":{"anyOf":[{"$ref":"#/components/schemas/ChannelMapping.Info"},{"type":"null"}]}},"required":["id","name","private","anyoneCanWrite","mapping"],"additionalProperties":false,"description":"A place that an install reaches."},"ChannelMapping.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ChannelMapping.ID"},"installId":{"$ref":"#/components/schemas/ChannelInstall.ID"},"provider":{"$ref":"#/components/schemas/Channel.Provider"},"place":{"type":"string","description":"The provider’s id of the place: a Slack channel, a Linear project, a GitHub repository."},"placeName":{"type":"string"},"space":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"agent":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Agent.ID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"Without it, the place reaches the ren agent."},"fallback":{"type":"boolean","description":"A sender that Ren cannot match to a member of the space runs as the fallback user. Off: refused."},"fallbackUser":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.UserID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/Channel.TriggerSetting"},"description":"The provider’s triggers that this mapping turned on. Each starts a turn with no mention."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","installId","provider","place","placeName","space","agent","fallback","fallbackUser","triggers","createdAt","updatedAt"],"additionalProperties":false,"description":"The link from one place to a space."},"Channel.TriggerSetting":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Channel.TriggerID"},"prompt":{"type":"string","minLength":1,"description":"Without it, the trigger’s default."}},"required":["id"],"additionalProperties":false,"description":"A trigger that a mapping turned on."},"Agent.ID":{"type":"string","pattern":"^agt_"},"Channel.Provider":{"type":"string","enum":["slack","linear","github"]},"ChannelInstall.ID":{"type":"string","pattern":"^chi_"},"ChannelMapping.ID":{"type":"string","pattern":"^chm_"},"WriteResult.Redirect":{"type":"object","properties":{"redirectUrl":{"type":"string"},"expiresAt":{"type":"string"}},"required":["redirectUrl","expiresAt"],"additionalProperties":false},"ChannelInstall.StartInput":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Channel.Provider"}},"required":["provider"],"additionalProperties":false},"ChannelInstall.ProviderInfos":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChannelInstall.ProviderInfo"}}},"required":["items"],"additionalProperties":false},"ChannelInstall.ProviderInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Channel.Provider"},"title":{"type":"string"},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/Channel.Trigger"}}},"required":["id","title","triggers"],"additionalProperties":false,"description":"A provider that this Ren server can install."},"Channel.Trigger":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Channel.TriggerID"},"title":{"type":"string"},"description":{"type":"string"},"defaultPrompt":{"type":"string"}},"required":["id","title","description","defaultPrompt"],"additionalProperties":false,"description":"An event that a mapping can turn on, so that Ren runs a turn with no mention."},"ChannelMapping.RemoveInput":{"not":{"type":"null"}},"ChannelMapping.CreateInput":{"type":"object","properties":{"installId":{"$ref":"#/components/schemas/ChannelInstall.ID"},"place":{"type":"string","minLength":1},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}],"description":"Without it, the place reaches the ren agent."},"fallback":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"On by default, and off by default for a public GitHub repository."},"fallbackUserId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}],"description":"A member of the space. Without it, the caller."},"triggers":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Channel.TriggerSetting"}},{"type":"null"}],"description":"The provider’s triggers to turn on, each at most once. Without it, none: every trigger is off."}},"required":["installId","place","spaceId"],"additionalProperties":false,"description":"Map a place, or replace the space, agent, fallback and triggers of its mapping. The same request twice gives the same mapping."},"ChannelMapping.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChannelMapping.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"ChannelInstall.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ChannelInstall.ID"},"provider":{"$ref":"#/components/schemas/Channel.Provider"},"workspace":{"type":"string","description":"The provider’s workspace id: Slack team, Linear organization, GitHub installation."},"name":{"type":"string","description":"The workspace name, or the GitHub account login."},"installedBy":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.UserID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"defaultSpace":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"Where messages from places with no mapping go. Without it, or when it is archived, the oldest active space."},"canUpdate":{"type":"boolean","description":"The caller installed it, or is an admin."},"createdAt":{"type":"string"}},"required":["id","provider","workspace","name","installedBy","defaultSpace","canUpdate","createdAt"],"additionalProperties":false,"description":"The link between the organization and one provider workspace. Ren never returns its secret."},"ChannelInstall.RemoveInput":{"not":{"type":"null"}},"ChannelInstall.UpdateInput":{"type":"object","properties":{"defaultSpaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}],"description":"A space the caller is a member of, or null for the oldest active space."}},"required":["defaultSpaceId"],"additionalProperties":false},"ChannelInstall.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChannelInstall.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Onboarding.Info":{"type":"object","properties":{"organization":{"$ref":"#/components/schemas/Onboarding.Checklist"},"personal":{"$ref":"#/components/schemas/Onboarding.Checklist_1"}},"required":["organization","personal"],"additionalProperties":false,"description":"The caller’s onboarding checklists."},"Onboarding.Checklist_1":{"type":"object","properties":{"steps":{"type":"array","items":{"$ref":"#/components/schemas/Onboarding.StepState"},"description":"Every step of the checklist, in order."},"dismissedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the checklist was hidden."}},"required":["steps","dismissedAt"],"additionalProperties":false,"description":"The caller’s own checklist in the organization."},"Onboarding.StepState":{"type":"object","properties":{"step":{"$ref":"#/components/schemas/Onboarding.Step"},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null while the step is not done."},"reward":{"anyOf":[{"$ref":"#/components/schemas/Onboarding.Reward"},{"type":"null"}],"description":"The credits the step offers now. Null when it offers none."},"earnedMicroUsd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Credits, in micro-USD, Ren granted for the step so far, each at the amount offered when it completed."},"earnedByCallerMicroUsd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The part of earnedMicroUsd that the caller’s own actions earned."}},"required":["step","completedAt","reward","earnedMicroUsd","earnedByCallerMicroUsd"],"additionalProperties":false},"Onboarding.Reward":{"type":"object","properties":{"microUsd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Credits, in micro-USD, that one completion pays."},"upTo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many completions pay. Only a repeatable step has it, such as each member who joins."}},"required":["microUsd"],"additionalProperties":false,"description":"The credits a step offers now."},"Onboarding.Step":{"anyOf":[{"$ref":"#/components/schemas/Onboarding.OrganizationStep"},{"$ref":"#/components/schemas/Onboarding.PersonalStep"}]},"Onboarding.PersonalStep":{"type":"string","enum":["github.starred","gmail.connected","granola.connected","drive.connected","apps.connected","memory.imported"],"description":"An action that counts toward a person’s own onboarding in the organization, in checklist order."},"Onboarding.OrganizationStep":{"type":"string","enum":["slack.connected","github.connected","member.joined","artifact.created","schedule.created","webhook.created","factory.created","custom-app.created","iac.applied"],"description":"An action that counts toward the organization’s onboarding, in the order the checklist shows it."},"Onboarding.Checklist":{"type":"object","properties":{"steps":{"type":"array","items":{"$ref":"#/components/schemas/Onboarding.StepState"},"description":"Every step of the checklist, in order."},"dismissedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the checklist was hidden."}},"required":["steps","dismissedAt"],"additionalProperties":false,"description":"The organization’s checklist. Hiding it hides it for every member."},"Onboarding.DismissInput":{"type":"object","properties":{"checklist":{"$ref":"#/components/schemas/Onboarding.ChecklistKind"}},"required":["checklist"],"additionalProperties":false},"Onboarding.ChecklistKind":{"type":"string","enum":["organization","personal"]},"Onboarding.CompleteInput":{"type":"object","properties":{"step":{"$ref":"#/components/schemas/Onboarding.ReportedStep"}},"required":["step"],"additionalProperties":false},"Onboarding.ReportedStep":{"type":"string","enum":["github.starred","memory.imported"],"description":"A personal step the app marks done when the person does it. It pays no reward."},"Billing.Link":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false},"Billing.PlanInput":{"type":"object","properties":{"plan":{"type":"string","description":"A `key` from the plan list, or `free`."}},"required":["plan"],"additionalProperties":false},"Billing.Checkout":{"type":"object","properties":{"checkoutUrl":{"type":"string","description":"The payment page. Open it in a new tab."}},"required":["checkoutUrl"],"additionalProperties":false},"Billing.InvoicePage":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/Billing.Invoice"}},"nextPage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Null when this page is the last."}},"required":["invoices","nextPage"],"additionalProperties":false},"Billing.Invoice":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"status":{"$ref":"#/components/schemas/Billing.InvoiceStatus"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"In the smallest unit of `currency`."},"currency":{"type":"string"},"issuedAt":{"type":"string"}},"required":["id","number","status","amountCents","currency","issuedAt"],"additionalProperties":false,"description":"A payment of the organization."},"Billing.InvoiceStatus":{"type":"string","enum":["paid","pending","processing","failed","cancelled"]},"Billing.Plan":{"type":"object","properties":{"key":{"type":"string","description":"A `key` from the plan list, or `free`."},"name":{"type":"string"},"priceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"creditsMicroUsd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The credit of each monthly cycle."},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}]},"badge":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["key","name","priceCents","creditsMicroUsd","description","tagline","badge","sortOrder"],"additionalProperties":false,"description":"A paid plan. Free is not in the list."},"Billing.Summary":{"type":"object","properties":{"plan":{"type":"string","description":"A `key` from the plan list, or `free`."},"planStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The subscription’s status. `cancel_scheduled`: the plan ends on `renewsAt`."},"renewsAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The next billing date. With `cancel_scheduled`, the plan ends then."},"pendingPlan":{"anyOf":[{"type":"string","description":"A `key` from the plan list, or `free`."},{"type":"null"}],"description":"A downgrade that starts on `renewsAt`."},"availableMicroUsd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The credit that new work can spend."},"grantedMicroUsd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The credit the organization was given."}},"required":["plan","planStatus","renewsAt","pendingPlan","availableMicroUsd","grantedMicroUsd"],"additionalProperties":false,"description":"The organization’s plan and credit."},"Limits.Info":{"type":"object","properties":{"limits":{"type":"array","items":{"$ref":"#/components/schemas/Limits.Limit"}},"credit":{"anyOf":[{"$ref":"#/components/schemas/Limits.Credit"},{"type":"null"}],"description":"Only for a model that Ren pays for and that is not free, and only when credit was granted."},"renCredit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The organization’s Ren credit left, in millionths of a US dollar, whatever the chat’s model: a card about another provider offers Ren’s models with it. Null when no credit was granted."}},"required":["limits","credit","renCredit"],"additionalProperties":false,"description":"What the chat’s current model uses up: the limits of its inference service and the Ren credit. Empty when a source does not answer."},"Limits.Credit":{"type":"object","properties":{"_tag":{"type":"string","enum":["credit"]},"key":{"type":"string","description":"Which limit. A banner step shows once per chat, key and `resetsAt`."},"percent":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How much is used, in whole percent. Above 100 when it went over."},"resetsAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The next billing date."},"availableMicroUsd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The credit left, in millionths of a US dollar."}},"required":["_tag","key","percent","resetsAt","availableMicroUsd"],"additionalProperties":false,"description":"The organization’s Ren credit in billing: used ÷ granted. Not a limit."},"Limits.Limit":{"anyOf":[{"$ref":"#/components/schemas/Limits.Seat"},{"$ref":"#/components/schemas/Limits.Free"}],"description":"A cap the inference service or a vendor enforces, with a reset: a seat’s window or the free cap."},"Limits.Free":{"type":"object","properties":{"_tag":{"type":"string","enum":["free"]},"key":{"type":"string","description":"Which limit. A banner step shows once per chat, key and `resetsAt`."},"percent":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How much is used, in whole percent. Above 100 when it went over."},"resetsAt":{"type":"string"},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["_tag","key","percent","resetsAt","used","limit"],"additionalProperties":false,"description":"Today’s free-model requests of the organization."},"Limits.Seat":{"type":"object","properties":{"_tag":{"type":"string","enum":["seat"]},"key":{"type":"string","description":"Which limit. A banner step shows once per chat, key and `resetsAt`."},"percent":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How much is used, in whole percent. Above 100 when it went over."},"resetsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"seat":{"type":"string","description":"Who connected the seat and its plan, such as “Asha’s Max”."},"providerName":{"type":"string","description":"The provider of the seat, such as Anthropic."},"window":{"type":"string","description":"The vendor’s window, such as `5h` or `7d`."},"title":{"type":"string","description":"The inference service’s name of the window."}},"required":["_tag","key","percent","resetsAt","seat","providerName","window","title"],"additionalProperties":false,"description":"One window of the seat that served the chat’s last seat call."},"Session.ID":{"type":"string","pattern":"^ses_"},"Provider.ModelListInput":{"type":"object","properties":{"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"enabled":{"type":"boolean"}},"required":["id","enabled"],"additionalProperties":false}}},"required":["models"],"additionalProperties":false},"Provider.ModelList":{"type":"object","properties":{"canManage":{"type":"boolean"},"models":{"type":"array","items":{"$ref":"#/components/schemas/Provider.Model"}}},"required":["canManage","models"],"additionalProperties":false,"description":"A provider’s models and their switches, the latest release first. A new model is always on."},"Provider.Model":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"type":{"$ref":"#/components/schemas/Models.Type"},"input":{"type":"array","items":{"$ref":"#/components/schemas/Models.Modality"},"description":"What the model reads."},"reasoning":{"type":"boolean","description":"The model has reasoning efforts."},"context":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The context window, in tokens."},"released":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The release date, such as `2026-10-02`."},"price":{"anyOf":[{"$ref":"#/components/schemas/Models.Price_1"},{"type":"null"}],"description":"Absent for a model the organization pays itself."},"free":{"type":"boolean"},"plans":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"A subscription model: the organization’s plans that serve it, such as `Max`."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The vendor’s one-line description."},"enabled":{"type":"boolean"}},"required":["id","name","type","input","reasoning","free","enabled"],"additionalProperties":false},"Models.Price_1":{"type":"object","properties":{"input":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"output":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"cacheRead":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"cacheWrite":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["input","output"],"additionalProperties":false,"description":"US dollars per 1M tokens, as models.dev states them."},"Models.Modality":{"type":"string","enum":["text","image","pdf","audio","video"]},"Models.Type":{"type":"string","enum":["chat","image","transcription","decision","speech","realtime","video"]},"Provider.KeyInput":{"type":"object","properties":{"fields":{"type":"object","additionalProperties":{"type":"string","maxLength":20000},"description":"The Connect form’s fields. Ren forwards them to the provider’s inference service once and never stores them."}},"required":["fields"],"additionalProperties":false},"Provider.UpdateInput":{"type":"object","properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"method":{"anyOf":[{"$ref":"#/components/schemas/Models.Method"},{"type":"null"}]}},"additionalProperties":false},"Models.Method":{"type":"string","enum":["key","subscription"],"description":"How a provider connects: the organization’s own key, or its members’ subscriptions."},"Provider.Page":{"type":"object","properties":{"providers":{"type":"array","items":{"$ref":"#/components/schemas/Provider.Info"},"description":"Every provider: the built-in ones first, then those the organization added, then the others."}},"required":["providers"],"additionalProperties":false},"Provider.Info":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"logo":{"type":"string","description":"The address of the provider’s logo."},"payer":{"$ref":"#/components/schemas/InferenceBackend.Payer"},"builtIn":{"type":"boolean","description":"The provider needs no connection: the deployment holds its credential."},"added":{"type":"boolean","description":"The organization added or changed the provider. A built-in provider is always added."},"enabled":{"type":"boolean"},"method":{"$ref":"#/components/schemas/Models.Method_1"},"methods":{"type":"array","items":{"$ref":"#/components/schemas/Models.Method"}},"paste":{"type":"string","minLength":1,"description":"What to paste back after signing in with a subscription, in the sign-in page’s words."},"signIn":{"type":"string","minLength":1,"description":"The label of the button that starts a member’s sign-in, for a provider with the subscription method."},"fields":{"type":"array","items":{"$ref":"#/components/schemas/InferenceBackend.Field"}},"key":{"anyOf":[{"$ref":"#/components/schemas/Provider.Key"},{"type":"null"}]},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/RenInference.Connection"},"description":"The members’ subscriptions, for a provider with the subscription method."},"modelTypes":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"How many of the provider’s models of each type are on; for a provider the organization did not add, how many it offers."},"canManage":{"type":"boolean","description":"True for admins and owners (Providers P7)."}},"required":["id","name","payer","builtIn","added","enabled","methods","fields","key","subscriptions","modelTypes","canManage"],"additionalProperties":false,"description":"One provider of the inference backends, with the organization’s settings of it."},"RenInference.Connection":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"providerName":{"type":"string"},"providerId":{"type":"string","description":"The card the seat belongs to: `anthropic` or `openai`. Omitted by an older inference service."},"iconUrl":{"type":"string"},"status":{"type":"object","properties":{"label":{"type":"string"},"tone":{"$ref":"#/components/schemas/RenInference.Tone"}},"required":["label","tone"],"additionalProperties":false},"availability":{"$ref":"#/components/schemas/RenInference.Availability"},"availableAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"plan":{"type":"string"},"canReconnect":{"type":"boolean"},"canManage":{"type":"boolean","description":"True when the viewer connected it, or is an admin or owner: they can rename, reconnect and remove it."},"limits":{"type":"array","items":{"$ref":"#/components/schemas/InferenceBackend.Window"}}},"required":["id","label","providerName","iconUrl","status","availability","availableAt","canReconnect","canManage","limits"],"additionalProperties":false,"description":"A model provider the organization connected, with display data from the Ren Inference Service."},"InferenceBackend.Window":{"type":"object","properties":{"key":{"type":"string","minLength":1,"description":"The vendor’s window, such as `5h` or `7d`."},"title":{"type":"string","description":"The inference service’s name of the window, such as “Weekly · Opus”."},"percent":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}],"description":"How much of the window is used, 0 to 100."},"resetsAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","title","percent","resetsAt"],"additionalProperties":false,"description":"One usage window of a subscription."},"RenInference.Availability":{"type":"string","enum":["ready","limited","needs_sign_in","blocked"],"description":"Whether chats can use the seat now. `limited` serves again at `availableAt`; `needs_sign_in` and `blocked` need a person."},"RenInference.Tone":{"type":"string","enum":["ok","warn","error"]},"Provider.Key":{"type":"object","properties":{"last4":{"type":"string","description":"The last 4 characters of the key."},"savedBy":{"anyOf":[{"$ref":"#/components/schemas/RenInference.KeyOwner"},{"type":"null"}]}},"required":["last4","savedBy"],"additionalProperties":false},"RenInference.KeyOwner":{"type":"object","properties":{"memberId":{"$ref":"#/components/schemas/Auth.MemberID"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null when the member has left the organization."}},"required":["memberId","name"],"additionalProperties":false},"Auth.MemberID":{"type":"string","pattern":"^mem_"},"InferenceBackend.Field":{"type":"object","properties":{"name":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"secret":{"type":"boolean"},"multiline":{"type":"boolean"},"placeholder":{"type":"string"}},"required":["name","label","secret"],"additionalProperties":false,"description":"One field of a provider’s Connect form."},"Models.Method_1":{"type":"string","enum":["key","subscription"],"description":"Absent on a built-in provider."},"InferenceBackend.Payer":{"type":"string","enum":["ren","customer"]},"RenInference.HarnessPlan":{"type":"object","properties":{"schemaVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"setupPlan":{"type":"object","properties":{"operations":{"type":"array","items":{"$ref":"#/components/schemas/RenInference.HarnessOperation"}},"verificationSteps":{"type":"array","items":{"$ref":"#/components/schemas/RenInference.HarnessVerificationStep"}}},"required":["operations","verificationSteps"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"string"}}},"required":["schemaVersion","setupPlan","warnings"],"additionalProperties":false,"description":"The edits that point a harness at Ren’s models, built from the organization’s live model list."},"RenInference.HarnessVerificationStep":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["file-exists"]},"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"}},"required":["kind","target"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["models-reachable"]}},"required":["kind"],"additionalProperties":false}]},"RenInference.HarnessTarget":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["claude-user-settings"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["codex-provider-configuration"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["codex-profile"]},"profileName":{"type":"string"}},"required":["kind","profileName"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["codex-model-catalog"]},"profileName":{"type":"string"}},"required":["kind","profileName"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["opencode-user-configuration"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["pi-model-catalog"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["hermes-provider-configuration"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["hermes-environment"]}},"required":["kind"],"additionalProperties":false}],"description":"A config file of a harness."},"RenInference.HarnessOperation":{"anyOf":[{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["set-object-path"]},"keyPath":{"type":"array","items":{"type":"string"}},"value":{}},"required":["target","description","containsSecret","kind","keyPath","value"],"additionalProperties":false},{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["remove-object-path"]},"keyPath":{"type":"array","items":{"type":"string"}}},"required":["target","description","containsSecret","kind","keyPath"],"additionalProperties":false},{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["upsert-toml-table"]},"tableName":{"anyOf":[{"type":"string"},{"type":"null"}]},"entries":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]}}},"required":["target","description","containsSecret","kind","tableName","entries"],"additionalProperties":false},{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["upsert-yaml-mapping"]},"keyPath":{"type":"array","items":{"type":"string"}},"value":{"type":"object"}},"required":["target","description","containsSecret","kind","keyPath","value"],"additionalProperties":false},{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["append-unique-list-item"]},"listKey":{"type":"string"},"identity":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}},"required":["key","value"],"additionalProperties":false},"item":{"type":"object"}},"required":["target","description","containsSecret","kind","listKey","identity","item"],"additionalProperties":false},{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["replace-ren-owned-file"]},"format":{"type":"string","enum":["json","jsonc","toml","yaml"]},"value":{"type":"object"}},"required":["target","description","containsSecret","kind","format","value"],"additionalProperties":false},{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["remove-ren-owned-file"]}},"required":["target","description","containsSecret","kind"],"additionalProperties":false},{"type":"object","properties":{"target":{"$ref":"#/components/schemas/RenInference.HarnessTarget"},"description":{"type":"string"},"containsSecret":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["set-environment-variables"]},"entries":{"type":"object","additionalProperties":{"type":"string"}}},"required":["target","description","containsSecret","kind","entries"],"additionalProperties":false}],"description":"One edit of a harness config file. The secret is `${REN_INFERENCE_KEY}`; `ren` puts the key there."},"RenInference.HarnessPlanInput":{"type":"object","properties":{"harnessId":{"$ref":"#/components/schemas/RenInference.HarnessId"},"keyEnvVar":{"anyOf":[{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,63}$"},{"type":"null"}]},"withOptional":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"schemaVersions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"supportedMutationKinds":{"type":"array","items":{"type":"string"}}},"required":["harnessId","schemaVersions","supportedMutationKinds"],"additionalProperties":false},"RenInference.HarnessId":{"type":"string","enum":["claude-code","opencode","codex","pi","hermes"]},"RenInference.KeySecret":{"type":"object","properties":{"secret":{"type":"string"},"baseUrl":{"type":"string"}},"required":["secret","baseUrl"],"additionalProperties":false},"RenInference.CreatedKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string","description":"The first 12 characters of the secret."},"status":{"$ref":"#/components/schemas/RenInference.KeyStatus"},"owner":{"$ref":"#/components/schemas/RenInference.KeyOwner"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The newest call with the key, over all time."},"createdAt":{"type":"string"},"canRevoke":{"type":"boolean","description":"True when the viewer may revoke the key and the key is `active` or `revoke_pending`."},"secret":{"type":"string","description":"The key. Ren shows it only once."},"baseUrl":{"type":"string"}},"required":["id","name","prefix","status","owner","expiresAt","lastUsedAt","createdAt","canRevoke","secret","baseUrl"],"additionalProperties":false},"RenInference.KeyStatus":{"type":"string","enum":["active","revoke_pending","revoked","expired"],"description":"`expired` as soon as `expiresAt` has passed."},"RenInference.CreateKeyInput":{"type":"object","properties":{"name":{"type":"string"},"expiresIn":{"$ref":"#/components/schemas/RenInference.Expiry"}},"required":["name","expiresIn"],"additionalProperties":false},"RenInference.Expiry":{"type":"string","enum":["7d","30d","1y","never"],"description":"When a new key expires: in 7 days, in 30 days, in 1 year, or never."},"RenInference.KeyUsage":{"type":"object","properties":{"keyId":{"type":"string"},"charged":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Micro-dollars of the calls that Ren paid for."},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every call, failed ones too."},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"models":{"type":"array","items":{"$ref":"#/components/schemas/RenInference.ModelUsage"}}},"required":["keyId","charged","calls","failed","models"],"additionalProperties":false,"description":"The usage of one key in a period."},"RenInference.ModelUsage":{"type":"object","properties":{"model":{"type":"string","description":"The model that the harness asked for."},"payer":{"$ref":"#/components/schemas/Usage.Payer"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Without cache reads and writes."},"outputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasoningTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheReadTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheWriteTokens":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"5-minute and 1-hour cache writes added."},"cost":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Micro-dollars charged on Ren."}},"required":["model","payer","calls","failed","inputTokens","outputTokens","reasoningTokens","cacheReadTokens","cacheWriteTokens","cost"],"additionalProperties":false},"RenInference.Period":{"type":"string","enum":["7d","30d","90d","all"],"description":"The usage period: the last 7, 30 or 90 days, or all time."},"RenInference.KeyList":{"type":"object","properties":{"baseUrl":{"type":"string","description":"The base URL that a harness or script calls with a key."},"keys":{"type":"array","items":{"$ref":"#/components/schemas/RenInference.Key"}}},"required":["baseUrl","keys"],"additionalProperties":false},"RenInference.Key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string","description":"The first 12 characters of the secret."},"status":{"$ref":"#/components/schemas/RenInference.KeyStatus"},"owner":{"$ref":"#/components/schemas/RenInference.KeyOwner"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The newest call with the key, over all time."},"createdAt":{"type":"string"},"canRevoke":{"type":"boolean","description":"True when the viewer may revoke the key and the key is `active` or `revoke_pending`."}},"required":["id","name","prefix","status","owner","expiresAt","lastUsedAt","createdAt","canRevoke"],"additionalProperties":false,"description":"An inference key: a member’s key to call Ren’s models from outside Ren."},"RenInference.RenameInput":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":64}},"required":["label"],"additionalProperties":false},"RenInference.SignInCode":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"code":{"type":"string","minLength":1,"maxLength":4096,"description":"What the vendor’s sign-in showed, such as a code or the address it ended on."}},"required":["provider","code"],"additionalProperties":false},"RenInference.SignIn":{"type":"object","properties":{"id":{"type":"string","minLength":1},"url":{"type":"string","description":"Open this address in a new tab; the vendor shows what to paste back."},"expiresAt":{"type":"string","description":"After this time, start again."},"paste":{"type":"string","description":"What to paste back after signing in, in the sign-in page’s words."}},"required":["id","url","expiresAt","paste"],"additionalProperties":false},"RenInference.SignInInput":{"type":"object","properties":{"provider":{"type":"string","minLength":1,"description":"The provider whose subscription the member signs in with."}},"required":["provider"],"additionalProperties":false},"OAuthApp.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OAuthApp.ID"},"organizationId":{"$ref":"#/components/schemas/Auth.OrganizationID"},"name":{"type":"string","description":"The name an MCP’s `oauth_app` requirement asks for."},"clientId":{"type":"string"},"hasClientSecret":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"discovery":{"$ref":"#/components/schemas/OAuthApp.Discovery"},"authorizationEndpoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"tokenEndpoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"tokenEndpointAuth":{"$ref":"#/components/schemas/OAuthApp.TokenEndpointAuth"},"resource":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorizeParams":{"type":"object","additionalProperties":{"type":"string"}},"configuredBy":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","organizationId","name","clientId","hasClientSecret","scopes","discovery","authorizationEndpoint","tokenEndpoint","tokenEndpointAuth","resource","authorizeParams","configuredBy","createdAt","updatedAt","archivedAt"],"additionalProperties":false,"description":"An org’s own OAuth client. Ren never returns its secret."},"OAuthApp.TokenEndpointAuth":{"type":"string","enum":["none","client_secret_basic","client_secret_post"]},"OAuthApp.Discovery":{"type":"string","enum":["live","static"],"description":"`static` uses the stored endpoints and skips discovery."},"Auth.OrganizationID":{"type":"string","pattern":"^org_"},"OAuthApp.ID":{"type":"string","pattern":"^oap_"},"OAuthApp.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}]},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"clientSecret":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"scopes":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"discovery":{"anyOf":[{"$ref":"#/components/schemas/OAuthApp.Discovery"},{"type":"null"}]},"authorizationEndpoint":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"}]},"tokenEndpoint":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"}]},"tokenEndpointAuth":{"anyOf":[{"$ref":"#/components/schemas/OAuthApp.TokenEndpointAuth"},{"type":"null"}]},"resource":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"}]},"authorizeParams":{"anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}]}},"additionalProperties":false},"OAuthApp.CreateInput":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"clientId":{"type":"string","minLength":1},"clientSecret":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"scopes":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"discovery":{"anyOf":[{"$ref":"#/components/schemas/OAuthApp.Discovery"},{"type":"null"}]},"authorizationEndpoint":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"}]},"tokenEndpoint":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"}]},"tokenEndpointAuth":{"anyOf":[{"$ref":"#/components/schemas/OAuthApp.TokenEndpointAuth"},{"type":"null"}]},"resource":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"}]},"authorizeParams":{"anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}]}},"required":["name","clientId"],"additionalProperties":false},"OAuthApp.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OAuthApp.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"OAuthSession.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OAuthSession.ID"},"status":{"$ref":"#/components/schemas/OAuthSession.Status"},"label":{"type":"string"},"credentialId":{"anyOf":[{"$ref":"#/components/schemas/Credential.ID"},{"type":"null"}],"description":"The credential, once the sign-in completed."},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"sameAccountAs":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The display name of another connection that holds the same account (K41)."},"expiresAt":{"type":"string"}},"required":["id","status","label","credentialId","failureReason","sameAccountAs","expiresAt"],"additionalProperties":false},"Credential.ID":{"type":"string","pattern":"^crd_"},"OAuthSession.Status":{"type":"string","enum":["pending","complete","failed","expired"]},"OAuthSession.ID":{"type":"string","pattern":"^oas_"},"Credential.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Credential.ID"},"organizationId":{"$ref":"#/components/schemas/Auth.OrganizationID"},"owner":{"$ref":"#/components/schemas/Credential.Owner"},"label":{"$ref":"#/components/schemas/Credential.EnvName"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"$ref":"#/components/schemas/Credential.Type"},"keyPreview":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The last 4 characters of a key, or the username of a basic credential."},"fieldNames":{"type":"array","items":{"type":"string"}},"hosts":{"type":"array","items":{"type":"string"}},"inject":{"$ref":"#/components/schemas/Credential.Inject"},"delivery":{"$ref":"#/components/schemas/Credential.Delivery"},"account":{"anyOf":[{"$ref":"#/components/schemas/Credential.Account"},{"type":"null"}],"description":"Whose account a sign-in reaches. A pasted key has none."},"scopes":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/components/schemas/Credential.Status"},"profileId":{"anyOf":[{"$ref":"#/components/schemas/AppProfile.ID"},{"type":"null"}],"description":"The profile that holds this credential."},"provider":{"anyOf":[{"$ref":"#/components/schemas/Credential.Provider"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","owner","label","name","type","keyPreview","fieldNames","hosts","inject","delivery","account","scopes","status","profileId","provider","expiresAt","createdBy","createdAt","updatedAt"],"additionalProperties":false},"AppProfile.ID":{"type":"string","pattern":"^apf_"},"Credential.Status":{"type":"string","enum":["ok","reconnect"]},"Credential.Account":{"type":"object","properties":{"userId":{"$ref":"#/components/schemas/Auth.UserID"},"name":{"type":"string"}},"required":["userId","name"],"additionalProperties":false},"Credential.Delivery":{"type":"string","enum":["egress","delivered"],"description":"`delivered` puts the real value into the workload, for traffic the egress cannot read yet."},"Credential.Inject":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","enum":["replace"]},"in":{"type":"array","prefixItems":[{"$ref":"#/components/schemas/Credential.Location"}],"minItems":1,"items":{"$ref":"#/components/schemas/Credential.Location"}}},"required":["op","in"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["setHeader"]},"name":{"type":"string","pattern":"^[A-Za-z0-9-]{1,64}$"},"format":{"type":"string","enum":["Bearer {value}","Basic {basic}","{value}"]}},"required":["op","name","format"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["route"]}},"required":["op"],"additionalProperties":false}],"description":"Where the egress puts the value: `replace` swaps the placeholder where it is found, `setHeader` sets a header on a request to the hosts that holds the placeholder anywhere in its headers, `route` forwards to the value as the upstream URL."},"Credential.Location":{"type":"string","enum":["header","query","path"],"description":"Where a placeholder is replaced. Never in a body: body text is content, such as a prompt that mentions a placeholder."},"Credential.Type":{"type":"string","enum":["key","basic","oauth","fields","route","client_credentials"]},"Credential.Owner":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["org"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["space"]},"spaceId":{"$ref":"#/components/schemas/Space.ID"}},"required":["kind","spaceId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"userId":{"$ref":"#/components/schemas/Auth.UserID"}},"required":["kind","userId"],"additionalProperties":false},{"$ref":"#/components/schemas/Credential.ProfileOwner"}]},"Credential.ProfileOwner":{"type":"object","properties":{"kind":{"type":"string","enum":["profile"]},"profileId":{"$ref":"#/components/schemas/AppProfile.ID"}},"required":["kind","profileId"],"additionalProperties":false},"Credential.ConnectInput":{"type":"object","properties":{"profileId":{"$ref":"#/components/schemas/AppProfile.ID"},"item":{"type":"object","properties":{"mcp":{"$ref":"#/components/schemas/Primitive.Slug_1"}},"required":["mcp"],"additionalProperties":false},"reconnect":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"returnTo":{"anyOf":[{"$ref":"#/components/schemas/Auth.MobileReturnTo"},{"type":"null"}]}},"required":["profileId","item"],"additionalProperties":false},"Auth.MobileReturnTo":{"type":"string"},"Credential.RemoveInput":{"not":{"type":"null"}},"Credential.MoveInput":{"type":"object","properties":{"owner":{"$ref":"#/components/schemas/Credential.LooseOwner"}},"required":["owner"],"additionalProperties":false},"Credential.LooseOwner":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["org"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["space"]},"spaceId":{"$ref":"#/components/schemas/Space.ID"}},"required":["kind","spaceId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"userId":{"$ref":"#/components/schemas/Auth.UserID"}},"required":["kind","userId"],"additionalProperties":false}],"description":"The owner of a key that belongs to no profile."},"Credential.RotateInput":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/Credential.Value"}},"required":["value"],"additionalProperties":false},"Credential.Value":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["key"]},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["basic"]},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1}},"required":["type","username","password"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["fields"]},"fields":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z][A-Za-z0-9_]*$","allOf":[{"pattern":"^(?!token$)"},{"pattern":"^(?!accessToken$)"},{"pattern":"^(?!username$)"},{"pattern":"^(?!password$)"},{"pattern":"^(?!basic$)"}]},"additionalProperties":{"type":"string","minLength":1},"minProperties":1,"maxProperties":20}},"required":["type","fields"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["client_credentials"]},"clientId":{"type":"string","minLength":1},"clientSecret":{"type":"string","minLength":1},"tokenEndpoint":{"$ref":"#/components/schemas/Primitive.HttpsUrl"},"tokenEndpointAuth":{"anyOf":[{"type":"string","enum":["client_secret_post","client_secret_basic"]},{"type":"null"}]},"scopes":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]}},"required":["type","clientId","clientSecret","tokenEndpoint"],"additionalProperties":false,"description":"An app’s client id and secret. Ren exchanges them for an access token, and again before it expires."}],"description":"A value a person gives. Ren never returns it."},"Credential.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"},{"type":"null"}]},"hosts":{"anyOf":[{"$ref":"#/components/schemas/Credential.Hosts"},{"type":"null"}]},"delivery":{"anyOf":[{"$ref":"#/components/schemas/Credential.Delivery"},{"type":"null"}]}},"additionalProperties":false},"Credential.Hosts":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Host"},"minItems":1,"maxItems":20},"Credential.Host":{"anyOf":[{"type":"string","enum":["*"]},{"type":"string","maxLength":253,"pattern":"^(?:\\*\\.)?(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z][a-z0-9-]*[a-z0-9]$"}],"description":"A host that may get the credential: a name, `*.<domain>` for its subdomains, or `*` for any host."},"Credential.CreateInput":{"anyOf":[{"$ref":"#/components/schemas/Credential.LooseCreateInput"},{"$ref":"#/components/schemas/Credential.ProfileCreateInput"}]},"Credential.ProfileCreateInput":{"type":"object","properties":{"owner":{"$ref":"#/components/schemas/Credential.ProfileOwner"},"item":{"$ref":"#/components/schemas/Credential.Item"},"hosts":{"$ref":"#/components/schemas/Credential.Hosts"},"value":{"$ref":"#/components/schemas/Credential.Value"}},"required":["owner","item","hosts","value"],"additionalProperties":false,"description":"A pasted value for one item of a profile. Ren computes its label."},"Credential.Item":{"anyOf":[{"type":"object","properties":{"mcp":{"$ref":"#/components/schemas/Primitive.Slug_1"}},"required":["mcp"],"additionalProperties":false},{"type":"object","properties":{"env":{"$ref":"#/components/schemas/Credential.AppEnvName"}},"required":["env"],"additionalProperties":false}],"description":"One MCP or one env key of a profile’s app."},"Credential.LooseCreateInput":{"type":"object","properties":{"owner":{"$ref":"#/components/schemas/Credential.LooseOwner"},"label":{"type":"string","maxLength":128,"pattern":"^[A-Z_][A-Z0-9_]*$"},"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}]},"hosts":{"$ref":"#/components/schemas/Credential.Hosts"},"inject":{"anyOf":[{"$ref":"#/components/schemas/Credential.Inject"},{"type":"null"}]},"delivery":{"anyOf":[{"$ref":"#/components/schemas/Credential.Delivery"},{"type":"null"}]},"value":{"$ref":"#/components/schemas/Credential.Value"}},"required":["owner","label","hosts","value"],"additionalProperties":false},"Credential.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Credential.OwnerKind":{"type":"string","enum":["org","space","person","profile"]},"Artifact.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Artifact.ID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"title":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The artifact’s own host name. Null when it has none."},"entry":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The file a person opens first, such as index.html. Null until the first deployment is ready."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link anyone can open without signing in. Null while the artifact is not served."},"pendingDeploymentId":{"anyOf":[{"$ref":"#/components/schemas/Artifact.DeploymentID"},{"type":"null"}],"description":"The deployment or stop in progress. Null when none is."},"publishedDeploymentId":{"anyOf":[{"$ref":"#/components/schemas/Artifact.DeploymentID"},{"type":"null"}],"description":"The last deployment that became ready. A stop does not change it."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","spaceId","title","name","entry","url","pendingDeploymentId","publishedDeploymentId","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Artifact.DeploymentID":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Names one deployment or stop. Retrying a deployment with it returns that deployment without starting another."},"Artifact.ID":{"type":"string","pattern":"^art_","allOf":[{"pattern":"^art_[0-9A-Za-z]{1,59}$","description":"The harness names a new artifact, and Ren keeps that id. It is unique across Ren."}]},"Artifact.UpdateInput":{"type":"object","properties":{"title":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}],"description":"The new title. Omit to keep it. A later deployment that names a title replaces it."},"name":{"anyOf":[{"$ref":"#/components/schemas/Artifact.Name"},{"type":"null"},{"type":"null"}],"description":"The new name. Omit to keep it; null removes it. The old name is free at once."}},"additionalProperties":false},"Artifact.Name":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$"},"Artifact.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Artifact.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"WebhookRequest.Detail":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/WebhookRequest.ID"},"webhookId":{"$ref":"#/components/schemas/Webhook.ID"},"receivedAt":{"type":"string"},"outcome":{"$ref":"#/components/schemas/WebhookRequest.Outcome"},"broken":{"type":"boolean","description":"A CEL expression of the parser ended in an error."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the outcome, such as `filter: no such key`."},"verified":{"type":"boolean","description":"False for a request recorded before the signing secret was set."},"eventId":{"anyOf":[{"type":"string"},{"type":"null"}]},"threadKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"sessionId":{"anyOf":[{"$ref":"#/components/schemas/Session.ID"},{"type":"null"}],"description":"The chat that it started or continued."},"method":{"type":"string"},"bodyBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Null for a rejected request, which keeps no body."},"query":{"type":"object","additionalProperties":{"type":"string"}},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Lowercase names. The values of authorization, cookie and the signature header are [hidden]."},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null for a rejected request."}},"required":["id","webhookId","receivedAt","outcome","broken","reason","verified","eventId","threadKey","sessionId","method","bodyBytes","query","headers","body"],"additionalProperties":false},"WebhookRequest.Outcome":{"type":"string","enum":["queued","started","continued","failed","recorded","throttled","answered","rejected","ignored","duplicate"],"description":"`queued`: passed the parser and waits for its chat. `started` or `continued`: a chat. `failed`: the chat did not take it. `recorded`: listening, or the owner or the agent left. `throttled`: over 60 requests a minute. `answered`: a handshake. `rejected`: too large, or a wrong or missing signature. `ignored`: the filter was false, or an expression failed. `duplicate`: an earlier request had its event ID."},"Webhook.ID":{"type":"string","pattern":"^whk_"},"WebhookRequest.ID":{"type":"string","pattern":"^whr_"},"WebhookRequest.NoInput":{"not":{"type":"null"}},"WebhookRequest.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WebhookRequest.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"WebhookRequest.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/WebhookRequest.ID"},"webhookId":{"$ref":"#/components/schemas/Webhook.ID"},"receivedAt":{"type":"string"},"outcome":{"$ref":"#/components/schemas/WebhookRequest.Outcome"},"broken":{"type":"boolean","description":"A CEL expression of the parser ended in an error."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the outcome, such as `filter: no such key`."},"verified":{"type":"boolean","description":"False for a request recorded before the signing secret was set."},"eventId":{"anyOf":[{"type":"string"},{"type":"null"}]},"threadKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"sessionId":{"anyOf":[{"$ref":"#/components/schemas/Session.ID"},{"type":"null"}],"description":"The chat that it started or continued."},"method":{"type":"string"},"bodyBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Null for a rejected request, which keeps no body."}},"required":["id","webhookId","receivedAt","outcome","broken","reason","verified","eventId","threadKey","sessionId","method","bodyBytes"],"additionalProperties":false},"Webhook.Replayed":{"type":"object","properties":{"replayed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The requests that this call queued."},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The requests that are left to replay. Call again while it is above 0."}},"required":["replayed","remaining"],"additionalProperties":false},"Webhook.NoInput":{"not":{"type":"null"}},"Webhook.TestResult":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhook.Tested"}}},"required":["items"],"additionalProperties":false,"description":"What the parser would do with each request. Saves nothing."},"Webhook.Tested":{"type":"object","properties":{"requestId":{"$ref":"#/components/schemas/WebhookRequest.ID"},"outcome":{"$ref":"#/components/schemas/Webhook.TestOutcome"},"broken":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventId":{"anyOf":[{"type":"string"},{"type":"null"}]},"threadKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["requestId","outcome","broken","reason","eventId","threadKey","title"],"additionalProperties":false,"description":"What the parser would do with one recorded request."},"Webhook.TestOutcome":{"type":"string","enum":["answered","passed","ignored","duplicate","rejected"],"description":"`answered`: a handshake answers it. `passed`: it would start or continue a chat. `ignored`: the filter is false, or an expression failed. `duplicate`: an earlier request had its event ID. `rejected`: its signature was not checked or was wrong."},"Webhook.TestInput":{"type":"object","properties":{"parser":{"anyOf":[{"$ref":"#/components/schemas/Webhook.Parser"},{"type":"null"}],"description":"Without it, the parser of the webhook."},"requestIds":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/WebhookRequest.ID"}},{"type":"null"}],"description":"Without it, the last 20 requests."}},"additionalProperties":false},"Webhook.Parser":{"type":"object","properties":{"signature":{"$ref":"#/components/schemas/Webhook.Signature"},"handshake":{"$ref":"#/components/schemas/Webhook.Expression"},"signedHandshake":{"$ref":"#/components/schemas/Webhook.Expression_1"},"filter":{"$ref":"#/components/schemas/Webhook.Expression_2"},"eventId":{"$ref":"#/components/schemas/Webhook.Expression_3"},"threadKey":{"$ref":"#/components/schemas/Webhook.Expression_4"},"title":{"$ref":"#/components/schemas/Webhook.Expression_5"}},"additionalProperties":false,"description":"The CEL expressions that tell what a request does."},"Webhook.Secret":{"type":"object","properties":{"record":{"$ref":"#/components/schemas/Webhook.Info"},"secret":{"type":"string"}},"required":["record","secret"],"additionalProperties":false},"Webhook.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Webhook.ID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"slug":{"$ref":"#/components/schemas/Primitive.Slug_7"},"name":{"type":"string"},"url":{"type":"string","description":"The address that the provider sends requests to. It holds a token."},"preset":{"anyOf":[{"$ref":"#/components/schemas/Webhook.PresetOf"},{"type":"null"}],"description":"Null for a custom webhook."},"ownerId":{"$ref":"#/components/schemas/Auth.UserID_2"},"fallbackUserId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}],"description":"Chats run as this person when the owner left the space."},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}],"description":"Null: a new chat gets the space’s default settings."},"mode":{"$ref":"#/components/schemas/Webhook.Mode"},"modeReason":{"anyOf":[{"$ref":"#/components/schemas/Webhook.ModeReason"},{"type":"null"}]},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null when the app no longer has the preset."},"parser":{"anyOf":[{"$ref":"#/components/schemas/Webhook.Parser"},{"type":"null"}],"description":"Null when the app no longer has the preset."},"hasSigningSecret":{"type":"boolean"},"lastRequest":{"anyOf":[{"$ref":"#/components/schemas/Webhook.LastRequest"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","spaceId","slug","name","url","preset","ownerId","fallbackUserId","agentId","mode","modeReason","message","parser","hasSigningSecret","lastRequest","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Webhook.LastRequest":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/WebhookRequest.ID"},"receivedAt":{"type":"string"},"outcome":{"$ref":"#/components/schemas/WebhookRequest.Outcome"},"broken":{"type":"boolean"}},"required":["id","receivedAt","outcome","broken"],"additionalProperties":false},"Webhook.ModeReason":{"type":"string","enum":["owner_left","agent_removed","parser_broken","preset_removed"],"description":"Why Ren switched the webhook to listening. `owner_left`: the owner and the fallback user left the space. `agent_removed`: its agent left the space. `parser_broken`: 5 requests in a row broke the parser. `preset_removed`: the app is gone, or no longer has the preset."},"Auth.UserID_2":{"type":"string","pattern":"^usr_","description":"The person who last changed the message, the parser or the agent. Chats run as this person while they are in the space."},"Webhook.PresetOf":{"type":"object","properties":{"appId":{"$ref":"#/components/schemas/App.ID"},"appName":{"type":"string"},"preset":{"$ref":"#/components/schemas/Primitive.Slug_1"},"secret":{"anyOf":[{"$ref":"#/components/schemas/Webhook.SecretSource"},{"type":"null"}],"description":"Null when the app no longer has the preset."},"setup":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null when the app no longer has the preset."},"updatedAt":{"type":"string"}},"required":["appId","appName","preset","secret","setup","updatedAt"],"additionalProperties":false,"description":"The app and the preset that a preset webhook reads."},"App.ID":{"type":"string","pattern":"^app_"},"Primitive.Slug_7":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Unique among the webhooks of its space that are not archived."},"Webhook.SigningSecretInput":{"type":"object","properties":{"secret":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The secret that the provider gave. Without it, Ren makes one and returns it once."}},"additionalProperties":false},"Webhook.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}],"description":"Not for a preset."},"message":{"anyOf":[{"$ref":"#/components/schemas/Webhook.MessageEncoded"},{"type":"null"}],"description":"Not for a preset."},"parser":{"anyOf":[{"$ref":"#/components/schemas/Webhook.Parser"},{"type":"null"}],"description":"Not for a preset."},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"},{"type":"null"}]},"fallbackUserId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"},{"type":"null"}],"description":"Only yourself, or null to remove it."},"mode":{"anyOf":[{"$ref":"#/components/schemas/Webhook.Mode"},{"type":"null"}],"description":"`live` needs the owner and the agent in the space, and a signing secret when the signature needs one."}},"additionalProperties":false,"description":"A change to the message, the parser or the agent makes you its owner."},"Webhook.CreateInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"source":{"$ref":"#/components/schemas/Webhook.Source"},"slug":{"anyOf":[{"$ref":"#/components/schemas/Primitive.Slug_1"},{"type":"null"}],"description":"Without it, Ren makes one from the name and adds -2, -3, … when it is taken."},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}],"description":"An agent of the space. Without it, the space’s default settings."}},"required":["spaceId","source"],"additionalProperties":false,"description":"A new webhook is listening: it records requests and starts no chat until it is live."},"Webhook.Source":{"anyOf":[{"type":"object","properties":{"_tag":{"type":"string","enum":["custom"]},"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"message":{"$ref":"#/components/schemas/Webhook.MessageEncoded"},"parser":{"$ref":"#/components/schemas/Webhook.Parser_1"}},"required":["_tag","name","message"],"additionalProperties":false},{"type":"object","properties":{"_tag":{"type":"string","enum":["preset"]},"appId":{"$ref":"#/components/schemas/App.ID"},"preset":{"$ref":"#/components/schemas/Primitive.Slug_8"}},"required":["_tag","appId","preset"],"additionalProperties":false}],"description":"A custom webhook with its own name, message and parser, or a preset of an app that the space reaches."},"Primitive.Slug_8":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"The key of the preset in the app’s webhooks."},"Webhook.Parser_1":{"type":"object","properties":{"signature":{"$ref":"#/components/schemas/Webhook.Signature"},"handshake":{"$ref":"#/components/schemas/Webhook.Expression"},"signedHandshake":{"$ref":"#/components/schemas/Webhook.Expression_1"},"filter":{"$ref":"#/components/schemas/Webhook.Expression_2"},"eventId":{"$ref":"#/components/schemas/Webhook.Expression_3"},"threadKey":{"$ref":"#/components/schemas/Webhook.Expression_4"},"title":{"$ref":"#/components/schemas/Webhook.Expression_5"}},"additionalProperties":false,"description":"The CEL expressions that tell what a request does."},"Webhook.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhook.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"ScheduleRun.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ScheduleRun.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"ScheduleRun.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ScheduleRun.ID"},"scheduleId":{"$ref":"#/components/schemas/Schedule.ID"},"scheduledAt":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"trigger":{"$ref":"#/components/schemas/ScheduleRun.Trigger"},"status":{"$ref":"#/components/schemas/ScheduleRun.Status"},"reason":{"anyOf":[{"$ref":"#/components/schemas/ScheduleRun.Reason"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"sessionId":{"anyOf":[{"$ref":"#/components/schemas/Session.ID"},{"type":"null"}],"description":"The chat that the run started or sent to. Null when it reached no chat, such as a skipped run."}},"required":["id","scheduleId","scheduledAt","startedAt","trigger","status","reason","error","sessionId"],"additionalProperties":false},"ScheduleRun.Reason":{"type":"string","enum":["previous_run_busy","paused","archived","owner_left","agent_removed","chat_archived"],"description":"Why a run was skipped."},"ScheduleRun.Status":{"type":"string","enum":["pending","started","skipped","failed"]},"ScheduleRun.Trigger":{"type":"string","enum":["timed","manual"],"description":"`timed`: its time came. `manual`: a person or an agent ran it now."},"Schedule.ID":{"type":"string","pattern":"^sch_"},"ScheduleRun.ID":{"type":"string","pattern":"^srn_"},"Schedule.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Schedule.ID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"slug":{"$ref":"#/components/schemas/Primitive.Slug_6"},"name":{"type":"string"},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}],"description":"Null: a new chat gets the space’s default settings."},"when":{"$ref":"#/components/schemas/Schedule.When"},"target":{"$ref":"#/components/schemas/Schedule.Target"},"message":{"type":"string"},"ownerId":{"$ref":"#/components/schemas/Auth.UserID_1"},"status":{"$ref":"#/components/schemas/Schedule.Status"},"pausedReason":{"anyOf":[{"$ref":"#/components/schemas/Schedule.PauseReason"},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastRun":{"anyOf":[{"$ref":"#/components/schemas/Schedule.LastRun"},{"type":"null"}],"description":"The latest run in the last 30 days."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","spaceId","slug","name","agentId","when","target","message","ownerId","status","pausedReason","nextRunAt","lastRun","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Schedule.LastRun":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ScheduleRun.ID"},"scheduledAt":{"type":"string"},"status":{"$ref":"#/components/schemas/ScheduleRun.Status"}},"required":["id","scheduledAt","status"],"additionalProperties":false},"Schedule.PauseReason":{"type":"string","enum":["user","owner_left","agent_removed","failing"],"description":"`user`: a person paused it. `owner_left`: its owner left the space. `agent_removed`: its agent left the space. `failing`: its last 5 runs failed."},"Schedule.Status":{"type":"string","enum":["active","paused","ended"]},"Auth.UserID_1":{"type":"string","pattern":"^usr_","description":"The person who last wrote its instruction. Each run sends the message as this person."},"Schedule.Target":{"anyOf":[{"type":"string","enum":["new-chat"]},{"type":"object","properties":{"sessionId":{"$ref":"#/components/schemas/Session.ID"}},"required":["sessionId"],"additionalProperties":false}],"description":"`new-chat` starts a chat at each run. A session ID sends the message to that chat."},"Schedule.When":{"anyOf":[{"type":"object","properties":{"cron":{"type":"string"},"timeZone":{"type":"string"},"until":{"type":"string"}},"required":["cron","timeZone"],"additionalProperties":false},{"$ref":"#/components/schemas/Schedule.Once"}],"description":"A cron in a time zone, or one time."},"Schedule.Once":{"type":"object","properties":{"at":{"type":"string"}},"required":["at"],"additionalProperties":false},"Primitive.Slug_6":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Unique among the live schedules of its space. A new name does not change it."},"Schedule.NoInput":{"not":{"type":"null"}},"Schedule.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}]},"message":{"anyOf":[{"$ref":"#/components/schemas/Schedule.MessageEncoded"},{"type":"null"}]},"when":{"anyOf":[{"$ref":"#/components/schemas/Schedule.WhenInput"},{"type":"null"}]},"target":{"anyOf":[{"$ref":"#/components/schemas/Schedule.TargetInput"},{"type":"null"}]},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"},{"type":"null"}]}},"additionalProperties":false,"description":"A change to the message, the agent, the target or the time makes you its owner."},"Schedule.TargetInput":{"anyOf":[{"type":"string","enum":["new-chat"]},{"type":"string","enum":["this-chat"]},{"type":"object","properties":{"sessionId":{"$ref":"#/components/schemas/Session.ID"}},"required":["sessionId"],"additionalProperties":false}],"description":"`new-chat` starts a chat at each run. `this-chat` sends the message to the chat of the agent that calls; a person cannot use it. A session ID sends the message to that chat."},"Schedule.WhenInput":{"anyOf":[{"$ref":"#/components/schemas/Schedule.Recurring"},{"$ref":"#/components/schemas/Schedule.Once"},{"type":"object","properties":{"in":{"type":"string"}},"required":["in"],"additionalProperties":false}],"description":"A cron in a time zone, one time, or a delay from now. Ren stores a delay as one time."},"Schedule.Recurring":{"type":"object","properties":{"cron":{"$ref":"#/components/schemas/Schedule.Cron"},"timeZone":{"$ref":"#/components/schemas/Schedule.TimeZone"},"until":{"type":"string"}},"required":["cron","timeZone"],"additionalProperties":false},"Schedule.CreateInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"slug":{"anyOf":[{"$ref":"#/components/schemas/Primitive.Slug_1"},{"type":"null"}],"description":"Without it, Ren makes one from the name and adds -2, -3, … when it is taken."},"message":{"$ref":"#/components/schemas/Schedule.MessageEncoded"},"when":{"$ref":"#/components/schemas/Schedule.WhenInput"},"target":{"anyOf":[{"$ref":"#/components/schemas/Schedule.TargetInput"},{"type":"null"}],"description":"Without it, `new-chat`."},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}],"description":"An agent of the space for a new chat. Without it, the space’s default settings."}},"required":["spaceId","name","message","when"],"additionalProperties":false},"Schedule.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Schedule.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"View.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/View.ID"},"organizationId":{"anyOf":[{"$ref":"#/components/schemas/Auth.OrganizationID"},{"type":"null"}],"description":"Null for a system view."},"ownerId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}],"description":"The person who made the view. Null for a system view."},"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}],"description":"The space whose page shows the view. Null for the page of the whole organization."},"type":{"$ref":"#/components/schemas/View.Type"},"name":{"type":"string"},"shared":{"type":"boolean","description":"Shown to everyone who sees the view’s page: the members of its space, or the whole organization. Otherwise only its owner sees it. Sharing a view shows no item a person could not already see."},"isSystem":{"type":"boolean","description":"A view Ren gives every page, which nobody can change."},"filters":{"$ref":"#/components/schemas/View.Filters"},"display":{"anyOf":[{"$ref":"#/components/schemas/View.Display"},{"type":"null"}],"description":"Null: the page keeps the layout the person last used."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","organizationId","ownerId","spaceId","type","name","shared","isSystem","filters","display","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"View.Display":{"type":"object","properties":{"layout":{"type":"string","enum":["list","board"]},"groupBy":{"type":"string","pattern":"^[a-z][a-zA-Z]{0,31}$"},"orderBy":{"type":"string","pattern":"^[a-z][a-zA-Z]{0,31}$"},"direction":{"type":"string","enum":["asc","desc"]},"showEmpty":{"type":"boolean","description":"Show groups that have no items."},"properties":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z]{0,31}$"},"maxItems":20,"description":"The fields each item shows, in order."}},"required":["layout","groupBy","orderBy","direction","showEmpty","properties"],"additionalProperties":false},"View.Filters":{"type":"object","patternProperties":{"^[a-z][a-zA-Z]{0,31}$":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256},"maxItems":100}},"additionalProperties":false,"maxProperties":20,"description":"The values each field must match, keyed by field. For tasks: `status`, `priority`, `agent`, `owner`, `label`, `space` and `review`. An item matches when each field has one of its values; `none` matches an empty field and `me` the person viewing."},"View.Type":{"anyOf":[{"type":"string","enum":["task"]}],"description":"What the view lists. `task`: tasks."},"View.ID":{"type":"string","pattern":"^vw_"},"View.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"$ref":"#/components/schemas/View.NameEncoded"},{"type":"null"}]},"shared":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"filters":{"anyOf":[{"$ref":"#/components/schemas/View.Filters"},{"type":"null"}]},"display":{"anyOf":[{"$ref":"#/components/schemas/View.Display"},{"type":"null"},{"type":"null"}]}},"additionalProperties":false},"View.NameEncoded":{"type":"string"},"View.CreateInput":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/View.Type"},"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}],"description":"Show the view on this space’s page. Without it, on the organization’s page."},"name":{"$ref":"#/components/schemas/View.NameEncoded"},"shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Defaults to `false`: only you see the view."},"filters":{"$ref":"#/components/schemas/View.Filters"},"display":{"anyOf":[{"$ref":"#/components/schemas/View.Display"},{"type":"null"},{"type":"null"}]}},"required":["type","name","filters"],"additionalProperties":false},"View.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/View.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Label.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Label.ID"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string"},{"type":"null"}]},"isSystem":{"type":"boolean"},"organizationId":{"anyOf":[{"$ref":"#/components/schemas/Auth.OrganizationID"},{"type":"null"}]},"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}],"description":"The space of a space label, which only that space sees. Null for an org label or a system label."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","color","isSystem","organizationId","spaceId","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Label.ID":{"type":"string","pattern":"^lbl_"},"Label.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"$ref":"#/components/schemas/Label.UserNameEncoded"},{"type":"null"}]},"color":{"anyOf":[{"$ref":"#/components/schemas/Label.ColorEncoded"},{"type":"null"},{"type":"null"}]}},"additionalProperties":false},"Label.ColorEncoded":{"type":"string"},"Label.UserNameEncoded":{"type":"string"},"Label.CreateInput":{"type":"object","properties":{"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}],"description":"Make a space label, which only this space sees. Without it, an org label, which only admins make."},"name":{"$ref":"#/components/schemas/Label.UserNameEncoded"},"color":{"anyOf":[{"$ref":"#/components/schemas/Label.ColorEncoded"},{"type":"null"},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"Label.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Label.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"PullRequest.Info":{"type":"object","properties":{"url":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"$ref":"#/components/schemas/PullRequest.State"},{"type":"null"}]}},"required":["url","number","title","state"],"additionalProperties":false,"description":"A GitHub pull request as GitHub shows it now. `title` and `state` are null when Ren cannot read it: no GitHub install, a repository outside the install, or GitHub did not answer."},"PullRequest.State":{"type":"string","enum":["open","draft","merged","closed"]},"Task.ID":{"type":"string","pattern":"^tsk_"},"SessionUsage.Info":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"models":{"type":"integer","minimum":0,"maximum":9007199254740991},"tools":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","enum":["usd"]},"source":{"$ref":"#/components/schemas/SessionUsage.Source"}},"required":["total","models","tools","currency","source"],"additionalProperties":false,"description":"What a chat cost, in millionths of a US dollar. It counts the chat and its subagents, and leaves out events that the organization paid with its own key or subscription."},"SessionUsage.Source":{"type":"string","enum":["provider","billed"],"description":"`provider` is what the provider charged Ren. `billed` is the price Ren charged the organization."},"SessionLinks.Info":{"type":"object","properties":{"tasks":{"type":"array","items":{"$ref":"#/components/schemas/SessionLinks.LinkedTask"},"description":"The tasks the chat worked on or created, that the caller can read. Oldest first."},"pullRequests":{"type":"array","items":{"$ref":"#/components/schemas/SessionLinks.LinkedPullRequest"},"description":"The pull requests those tasks link."},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SessionLinks.Issue"},"description":"The GitHub and Linear issues those tasks link."},"threads":{"type":"array","items":{"$ref":"#/components/schemas/SessionLinks.Thread"},"description":"The channel threads that talk to the chat."}},"required":["tasks","pullRequests","issues","threads"],"additionalProperties":false},"SessionLinks.Thread":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Channel.Provider"},"url":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The channel or repository, such as web-team."}},"required":["provider","url","place"],"additionalProperties":false},"SessionLinks.Issue":{"type":"object","properties":{"kind":{"type":"string","enum":["github_issue","linear_issue"]},"url":{"type":"string"}},"required":["kind","url"],"additionalProperties":false},"SessionLinks.LinkedPullRequest":{"type":"object","properties":{"url":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","number"],"additionalProperties":false,"description":"A pull request as Ren stores it. `session.pullRequests` adds its title and state from GitHub."},"SessionLinks.LinkedTask":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Task.ID"},"identifier":{"type":"string"},"title":{"type":"string"},"status":{"$ref":"#/components/schemas/Task.Status"}},"required":["id","identifier","title","status"],"additionalProperties":false},"Task.Status":{"type":"string","enum":["backlog","todo","in_progress","done","dismissed"],"description":"The state of the whole task, never of one agent. `backlog`: no one started it, and it is not a priority yet. `todo`: no one started it. `in_progress`: the work started and is not finished; a handoff keeps it. `done`: finished. `dismissed`: no one will do it; it stays readable so that it is not suggested again. Only a person sets `done` or `dismissed`."},"TaskActivity.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TaskActivity.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"TaskActivity.Info":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/TaskEvent.ID"},"type":{"type":"string","enum":["event"]},"event":{"$ref":"#/components/schemas/TaskEvent.Info"}},"required":["id","type","event"],"additionalProperties":false},{"type":"object","properties":{"id":{"$ref":"#/components/schemas/TaskComment.ID"},"type":{"type":"string","enum":["comment"]},"comment":{"$ref":"#/components/schemas/TaskComment.Info"}},"required":["id","type","comment"],"additionalProperties":false}]},"TaskComment.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/TaskComment.ID"},"taskId":{"$ref":"#/components/schemas/Task.ID"},"body":{"type":"string"},"author":{"$ref":"#/components/schemas/Task.Actor"},"editedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"canUpdate":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","taskId","body","author","editedAt","canUpdate","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Task.Actor":{"type":"object","properties":{"userId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}]},"sessionId":{"anyOf":[{"$ref":"#/components/schemas/Session.ID"},{"type":"null"}]}},"required":["userId","agentId","sessionId"],"additionalProperties":false,"description":"Who acted: a person, an agent in a session on a person’s behalf, or the system when every field is null."},"TaskComment.ID":{"type":"string","pattern":"^tcm_"},"TaskEvent.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/TaskEvent.ID"},"taskId":{"$ref":"#/components/schemas/Task.ID"},"data":{"$ref":"#/components/schemas/TaskEvent.Data"},"actor":{"$ref":"#/components/schemas/Task.Actor"},"createdAt":{"type":"string"}},"required":["id","taskId","data","actor","createdAt"],"additionalProperties":false},"TaskEvent.Data":{"anyOf":[{"$ref":"#/components/schemas/TaskEvent.Created"},{"$ref":"#/components/schemas/TaskEvent.Assigned"},{"$ref":"#/components/schemas/TaskEvent.Started"},{"$ref":"#/components/schemas/TaskEvent.StatusChanged"},{"$ref":"#/components/schemas/TaskEvent.ReviewRequested"},{"$ref":"#/components/schemas/TaskEvent.Reviewed"},{"$ref":"#/components/schemas/TaskEvent.Finished"},{"$ref":"#/components/schemas/TaskEvent.FieldChanged"},{"$ref":"#/components/schemas/TaskEvent.LabelsChanged"},{"$ref":"#/components/schemas/TaskEvent.LinksChanged"},{"$ref":"#/components/schemas/TaskEvent.ParentChanged"},{"$ref":"#/components/schemas/TaskEvent.Archived"}]},"TaskEvent.Archived":{"type":"object","properties":{"_tag":{"type":"string","enum":["archived"]}},"required":["_tag"],"additionalProperties":false},"TaskEvent.ParentChanged":{"type":"object","properties":{"_tag":{"type":"string","enum":["parent"]},"from":{"anyOf":[{"$ref":"#/components/schemas/Task.ID"},{"type":"null"}]},"to":{"anyOf":[{"$ref":"#/components/schemas/Task.ID"},{"type":"null"}]}},"required":["_tag","from","to"],"additionalProperties":false},"TaskEvent.LinksChanged":{"type":"object","properties":{"_tag":{"type":"string","enum":["link"]},"added":{"type":"array","items":{"type":"string"}},"removed":{"type":"array","items":{"type":"string"}}},"required":["_tag","added","removed"],"additionalProperties":false,"description":"Link URLs."},"TaskEvent.LabelsChanged":{"type":"object","properties":{"_tag":{"type":"string","enum":["label"]},"from":{"type":"array","items":{"type":"string"}},"to":{"type":"array","items":{"type":"string"}}},"required":["_tag","from","to"],"additionalProperties":false,"description":"Label names before and after."},"TaskEvent.FieldChanged":{"type":"object","properties":{"_tag":{"type":"string","enum":["field"]},"field":{"$ref":"#/components/schemas/TaskEvent.Field"},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","field","from","to"],"additionalProperties":false},"TaskEvent.Field":{"type":"string","enum":["title","description","priority","dueAt"]},"TaskEvent.Finished":{"type":"object","properties":{"_tag":{"type":"string","enum":["finished"]},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","agentId","note"],"additionalProperties":false,"description":"The factory’s work is done. The task has no agent and waits for a person or a merge."},"TaskEvent.Reviewed":{"type":"object","properties":{"_tag":{"type":"string","enum":["reviewed"]},"decision":{"$ref":"#/components/schemas/Task.Decision"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","decision","comment"],"additionalProperties":false},"Task.Decision":{"type":"string","enum":["approved","changes_requested"]},"TaskEvent.ReviewRequested":{"type":"object","properties":{"_tag":{"type":"string","enum":["review_requested"]},"reason":{"type":"string"}},"required":["_tag","reason"],"additionalProperties":false},"TaskEvent.StatusChanged":{"type":"object","properties":{"_tag":{"type":"string","enum":["status"]},"from":{"$ref":"#/components/schemas/Task.Status"},"to":{"$ref":"#/components/schemas/Task.Status"},"automation":{"$ref":"#/components/schemas/TaskEvent.Automation"}},"required":["_tag","from","to"],"additionalProperties":false},"TaskEvent.Automation":{"type":"object","properties":{"provider":{"type":"string","enum":["github"]},"cause":{"type":"string","enum":["pull_request_merged"]},"url":{"type":"string"}},"required":["provider","cause","url"],"additionalProperties":false,"description":"The outside event that changed the status, with no person or agent acting."},"TaskEvent.Started":{"type":"object","properties":{"_tag":{"type":"string","enum":["started"]},"agentId":{"$ref":"#/components/schemas/Agent.ID"},"sessionId":{"$ref":"#/components/schemas/Session.ID"},"mode":{"$ref":"#/components/schemas/Task.StartMode"}},"required":["_tag","agentId","sessionId","mode"],"additionalProperties":false},"Task.StartMode":{"type":"string","enum":["new","continue"],"description":"`new` opens a new session for the task’s agent. `continue` resumes the agent’s latest session on this task, or opens one when there is none."},"TaskEvent.Assigned":{"type":"object","properties":{"_tag":{"type":"string","enum":["assigned"]},"fromAgentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}]},"toAgentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}]},"fromOwnerId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"toOwnerId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"fromSpaceId":{"$ref":"#/components/schemas/Space.ID"},"toSpaceId":{"$ref":"#/components/schemas/Space.ID"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","fromAgentId","toAgentId","fromOwnerId","toOwnerId","fromSpaceId","toSpaceId","note"],"additionalProperties":false},"TaskEvent.Created":{"type":"object","properties":{"_tag":{"type":"string","enum":["created"]}},"required":["_tag"],"additionalProperties":false},"TaskEvent.ID":{"type":"string","pattern":"^tev_"},"TaskComment.UpdateInput":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/TaskComment.Body"}},"required":["body"],"additionalProperties":false},"TaskComment.Body":{"type":"string","maxLength":20000,"description":"Markdown."},"TaskComment.CreateInput":{"type":"object","properties":{"taskId":{"$ref":"#/components/schemas/Task.ID"},"body":{"$ref":"#/components/schemas/TaskComment.Body"}},"required":["taskId","body"],"additionalProperties":false},"Task.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Task.ID"},"organizationId":{"$ref":"#/components/schemas/Auth.OrganizationID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"parentId":{"anyOf":[{"$ref":"#/components/schemas/Task.ID"},{"type":"null"}]},"parent":{"anyOf":[{"$ref":"#/components/schemas/Task.Parent"},{"type":"null"}]},"subtasks":{"anyOf":[{"$ref":"#/components/schemas/Task.Subtasks"},{"type":"null"}],"description":"Null when the task has no live subtasks."},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"identifier":{"type":"string"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/Task.Status"},"priority":{"anyOf":[{"$ref":"#/components/schemas/Task.Priority"},{"type":"null"}]},"humanReview":{"type":"boolean"},"humanReviewReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}]},"ownerId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"session":{"anyOf":[{"$ref":"#/components/schemas/Task.AgentSession"},{"type":"null"}]},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label.Summary"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/TaskLink.Info"}},"createdBy":{"$ref":"#/components/schemas/Task.Actor"},"canUpdate":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","organizationId","spaceId","parentId","parent","subtasks","number","identifier","title","description","status","priority","humanReview","humanReviewReason","dueAt","agentId","ownerId","session","labels","links","createdBy","canUpdate","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"TaskLink.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/TaskLink.ID"},"kind":{"$ref":"#/components/schemas/TaskLink.Kind"},"url":{"type":"string"}},"required":["id","kind","url"],"additionalProperties":false},"TaskLink.Kind":{"type":"string","enum":["github_pr","github_issue","linear_issue","slack_thread","url"]},"TaskLink.ID":{"type":"string","pattern":"^tlk_"},"Label.Summary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Label.ID"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string"},{"type":"null"}]},"isSystem":{"type":"boolean"}},"required":["id","name","color","isSystem"],"additionalProperties":false},"Task.AgentSession":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Session.ID"},"state":{"$ref":"#/components/schemas/Task.SessionState"}},"required":["id","state"],"additionalProperties":false,"description":"The latest session of the task’s agent on this task."},"Task.SessionState":{"type":"string","enum":["working","idle","failed"]},"Task.Priority":{"type":"string","enum":["low","medium","high"]},"Task.Subtasks":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","done"],"additionalProperties":false,"description":"The task’s live subtasks: `done` of `total`. Dismissed subtasks count in neither."},"Task.Parent":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Task.ID"},"identifier":{"type":"string"},"title":{"type":"string"}},"required":["id","identifier","title"],"additionalProperties":false},"Task.FinishInput":{"type":"object","properties":{"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"description":"What is ready and where: the pull request, the deliverable. The trail keeps it."}},"additionalProperties":false,"description":"Finish the task: the factory’s work is done and the result is ready for a person or a merge. Only an agent the factory lets finish may call it; others hand off with `task_assign`. Use `task_review` instead when you are blocked and a person must decide."},"Task.ReviewInput":{"anyOf":[{"type":"object","properties":{"humanReview":{"type":"boolean","enum":[true]},"reason":{"$ref":"#/components/schemas/Task.ReasonEncoded"}},"required":["humanReview","reason"],"additionalProperties":false},{"type":"object","properties":{"humanReview":{"type":"boolean","enum":[false]},"decision":{"$ref":"#/components/schemas/Task.Decision"},"comment":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"start":{"anyOf":[{"type":"string","enum":["continue","none"]},{"type":"null"}],"description":"Whether to continue the agent’s latest session with the decision. Without it, Ren’s default applies."}},"required":["humanReview","decision"],"additionalProperties":false}],"description":"Turn human review on, with the reason a person must act, or off, with a person’s decision. An agent turns it off only to record the decision of the person it acts for."},"Task.ReasonEncoded":{"type":"string"},"Task.StartInput":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/Task.StartMode"}},"required":["mode"],"additionalProperties":false},"Task.AssignInput":{"type":"object","properties":{"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"},{"type":"null"}],"description":"The new agent, or null for none. An agent whose start message lists handoff choices can hand off only to those agents."},"ownerId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"},{"type":"null"}],"description":"The new owner, or null for none."},"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}],"description":"Moves the task and its subtasks to this space. An owner who is not a member of the space is cleared, and so is a subtask’s agent that the space cannot use. A subtask moves only with its parent."},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"description":"The instruction for the receiving agent. The trail keeps it; the description stays."},"start":{"anyOf":[{"type":"string","enum":["new","continue","none"]},{"type":"null"}],"description":"Whether to start the agent. The default is `continue` when the agent changes, else `none`."}},"additionalProperties":false},"Task.UpdateInput":{"type":"object","properties":{"title":{"anyOf":[{"$ref":"#/components/schemas/Task.TitleEncoded"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/Task.Status"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/Task.Priority"},{"type":"null"},{"type":"null"}]},"labels":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Task.LabelNameEncoded"},"maxItems":16},{"type":"null"}],"description":"Replaces the task’s labels."},"dueAt":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"addLinks":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/TaskLink.Url"},"maxItems":32},{"type":"null"}]},"removeLinks":{"anyOf":[{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskLink.ID"},{"$ref":"#/components/schemas/TaskLink.Url"}]}},{"type":"null"}],"description":"Links to remove, by ID or by URL."},"parentId":{"anyOf":[{"$ref":"#/components/schemas/Task.ID"},{"type":"null"},{"type":"null"}],"description":"Makes the task a subtask of this task, which must be in the same space and not be a subtask itself. Null makes it a task of its own. A task that has subtasks cannot become one."}},"additionalProperties":false,"description":"Change the task’s content. Assignment has its own action, `assign`."},"TaskLink.Url":{"type":"string","maxLength":2048},"Task.LabelNameEncoded":{"type":"string"},"Task.TitleEncoded":{"type":"string"},"Task.CreateInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"title":{"$ref":"#/components/schemas/Task.TitleEncoded"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/Task.Status"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/Task.Priority"},{"type":"null"}]},"labels":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Task.LabelNameEncoded"},"maxItems":16},{"type":"null"}]},"links":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/TaskLink.Url"},"maxItems":32},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}],"description":"The agent that has the task. Creating never starts it. Without it, an agent of the space’s factory that creates the task holds it."},"ownerId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}],"description":"The person responsible for the task."},"parentId":{"anyOf":[{"$ref":"#/components/schemas/Task.ID"},{"type":"null"}],"description":"Makes the task a subtask of this task, which must be in the same space and not be a subtask itself."}},"required":["spaceId","title"],"additionalProperties":false},"Task.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Task.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"SessionModel.Choices":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/SessionModel.Choice"}},"default":{"$ref":"#/components/schemas/SessionModel.Ref_1"}},"required":["models"],"additionalProperties":false},"SessionModel.Ref_1":{"type":"object","properties":{"id":{"type":"string"},"providerID":{"type":"string"},"variant":{"type":"string"}},"required":["id","providerID"],"additionalProperties":false,"description":"The model a session starts with when it names none."},"SessionModel.Choice":{"type":"object","properties":{"id":{"type":"string"},"providerID":{"type":"string"},"name":{"type":"string"},"variants":{"type":"array","items":{"$ref":"#/components/schemas/SessionModel.Variant"}},"providerName":{"type":"string","description":"The provider the model comes from, as the Providers page names it. Omitted by an older Ren."},"method":{"$ref":"#/components/schemas/Models.Method"},"price":{"$ref":"#/components/schemas/Models.Price"},"free":{"type":"boolean"},"description":{"type":"string","minLength":1,"description":"The vendor’s one-line description of the model."},"defaultEffort":{"type":"string","minLength":1,"description":"The effort a chat starts with, when the vendor names one."},"rank":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"The vendor’s order of its models, 1 first. Absent: the vendor does not order them."},"featured":{"type":"boolean","enum":[true],"description":"One of the models the vendor shows first; a picker puts the others behind “More models”."}},"required":["id","providerID","name","variants"],"additionalProperties":false},"Models.Price":{"type":"object","properties":{"input":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"output":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"cacheRead":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"cacheWrite":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["input","output"],"additionalProperties":false,"description":"Absent for a model the organization pays itself."},"SessionModel.Variant":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"Session.FirstMessage":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"text":{"type":"string","minLength":1},"files":{"type":"array","items":{"$ref":"#/components/schemas/Session.DriveFile"},"maxItems":10}},"required":["id","text"],"additionalProperties":false},"Session.DriveFile":{"type":"object","properties":{"path":{"$ref":"#/components/schemas/Drive.PathEncoded"},"name":{"type":"string","minLength":1}},"required":["path","name"],"additionalProperties":false,"description":"A file in the drive of the chat’s space. The chat reads it on its environment."},"Drive.PathEncoded":{"type":"string","minLength":1},"SessionMessage.ID":{"type":"string","pattern":"^msg_"},"TooLargeErrorEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["TooLargeError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"SessionMessage.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SessionMessage.Info"}},"cursor":{"type":"object","properties":{"previous":{"type":"string"},"next":{"type":"string"}},"additionalProperties":false}},"required":["items","cursor"],"additionalProperties":false},"SessionMessage.Info":{"anyOf":[{"$ref":"#/components/schemas/SessionMessage.AgentSwitched"},{"$ref":"#/components/schemas/SessionMessage.ModelSwitched"},{"$ref":"#/components/schemas/SessionMessage.User"},{"$ref":"#/components/schemas/SessionMessage.Synthetic"},{"$ref":"#/components/schemas/SessionMessage.System"},{"$ref":"#/components/schemas/SessionMessage.Skill"},{"$ref":"#/components/schemas/SessionMessage.Shell"},{"$ref":"#/components/schemas/SessionMessage.Assistant"},{"$ref":"#/components/schemas/SessionMessage.Compaction"},{"$ref":"#/components/schemas/SessionMessage.Idle"}]},"SessionMessage.Idle":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["idle"]},"outcome":{"type":"string","enum":["succeeded","failed","interrupted"]},"error":{"$ref":"#/components/schemas/SessionError.Info"}},"required":["id","time","type","outcome"],"additionalProperties":false},"SessionError.Info":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"status":{"type":"integer","minimum":100,"maximum":599},"response":{"type":"object","properties":{"body":{"type":"string"}},"required":["body"],"additionalProperties":false},"code":{"$ref":"#/components/schemas/SessionError.Code"},"retry":{"type":"boolean"},"resetsAt":{"type":"string"}},"required":["type","message"],"additionalProperties":false},"SessionError.Code":{"type":"string","enum":["out_of_credits","free_limit","subscription_limit","provider_credits","usage_limit","plan_excluded","provider_not_connected","model_off","model_unavailable","auth_lost","subscription_signed_out","provider_blocked","no_access","subscription_inactive","provider_down","rate_limited","seat_unavailable","ren_models_down","ren_unreachable","context_too_long","content_blocked","subscription_unsupported"]},"SessionMessage.Compaction":{"anyOf":[{"$ref":"#/components/schemas/SessionMessage.CompactionRunning"},{"$ref":"#/components/schemas/SessionMessage.CompactionCompleted"},{"$ref":"#/components/schemas/SessionMessage.CompactionFailed"}]},"SessionMessage.CompactionFailed":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["compaction"]},"status":{"type":"string","enum":["failed"]},"reason":{"type":"string","enum":["auto","manual"]},"error":{"$ref":"#/components/schemas/SessionError.Info"},"cost":{"type":"number"},"tokens":{"$ref":"#/components/schemas/SessionMessage.TokenUsage"}},"required":["id","time","type","status","reason","error"],"additionalProperties":false},"SessionMessage.TokenUsage":{"type":"object","properties":{"input":{"type":"number"},"output":{"type":"number"},"reasoning":{"type":"number"},"cache":{"type":"object","properties":{"read":{"type":"number"},"write":{"type":"number"}},"required":["read","write"],"additionalProperties":false}},"required":["input","output","reasoning","cache"],"additionalProperties":false},"SessionMessage.CompactionCompleted":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["compaction"]},"status":{"type":"string","enum":["completed"]},"reason":{"type":"string","enum":["auto","manual"]},"model":{"$ref":"#/components/schemas/SessionModel.Ref"},"summary":{"type":"string"},"recent":{"type":"string"},"cost":{"type":"number"},"tokens":{"$ref":"#/components/schemas/SessionMessage.TokenUsage"}},"required":["id","time","type","status","reason","summary","recent"],"additionalProperties":false},"SessionModel.Ref":{"type":"object","properties":{"id":{"type":"string"},"providerID":{"type":"string"},"variant":{"type":"string"}},"required":["id","providerID"],"additionalProperties":false},"SessionMessage.CompactionRunning":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["compaction"]},"status":{"type":"string","enum":["running"]},"reason":{"type":"string","enum":["auto","manual"]},"summary":{"type":"string"},"recent":{"type":"string"}},"required":["id","time","type","status","reason","summary","recent"],"additionalProperties":false},"SessionMessage.Assistant":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"streamed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["assistant"]},"agent":{"type":"string"},"model":{"$ref":"#/components/schemas/SessionModel.Ref"},"content":{"type":"array","items":{"$ref":"#/components/schemas/SessionMessage.Content"}},"snapshot":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"},"files":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"finish":{"type":"string","enum":["stop","length","tool-calls","content-filter","error","unknown"]},"cost":{"type":"number"},"tokens":{"$ref":"#/components/schemas/SessionMessage.TokenUsage"},"error":{"$ref":"#/components/schemas/SessionError.Info"},"retry":{"$ref":"#/components/schemas/SessionMessage.Retry"}},"required":["id","time","type","agent","model","content"],"additionalProperties":false},"SessionMessage.Retry":{"type":"object","properties":{"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"$ref":"#/components/schemas/SessionError.Info"}},"required":["attempt","at","error"],"additionalProperties":false},"SessionMessage.Content":{"anyOf":[{"$ref":"#/components/schemas/SessionMessage.Text"},{"$ref":"#/components/schemas/SessionMessage.Reasoning"},{"$ref":"#/components/schemas/SessionMessage.Tool"}]},"SessionMessage.Tool":{"type":"object","properties":{"type":{"type":"string","enum":["tool"]},"id":{"type":"string"},"name":{"type":"string"},"executed":{"type":"boolean"},"state":{"$ref":"#/components/schemas/SessionMessage.ToolState"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ran":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false}},"required":["type","id","name","state","time"],"additionalProperties":false},"SessionMessage.ToolState":{"anyOf":[{"$ref":"#/components/schemas/SessionMessage.ToolStreaming"},{"$ref":"#/components/schemas/SessionMessage.ToolRunning"},{"$ref":"#/components/schemas/SessionMessage.ToolCompleted"},{"$ref":"#/components/schemas/SessionMessage.ToolError"}]},"SessionMessage.ToolError":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"input":{"type":"object"},"error":{"$ref":"#/components/schemas/SessionError.Info"},"content":{"type":"array","prefixItems":[{"$ref":"#/components/schemas/SessionMessage.ToolContent"}],"minItems":1,"items":{"$ref":"#/components/schemas/SessionMessage.ToolContent"}},"metadata":{"type":"object"}},"required":["status","input","error"],"additionalProperties":false},"SessionMessage.ToolContent":{"anyOf":[{"$ref":"#/components/schemas/SessionMessage.ToolTextContent"},{"$ref":"#/components/schemas/SessionMessage.ToolFileContent"}]},"SessionMessage.ToolFileContent":{"type":"object","properties":{"type":{"type":"string","enum":["file"]},"uri":{"type":"string"},"mime":{"type":"string"},"name":{"type":"string"}},"required":["type","uri","mime"],"additionalProperties":false},"SessionMessage.ToolTextContent":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},"SessionMessage.ToolCompleted":{"type":"object","properties":{"status":{"type":"string","enum":["completed"]},"input":{"type":"object"},"content":{"type":"array","prefixItems":[{"$ref":"#/components/schemas/SessionMessage.ToolContent"}],"minItems":1,"items":{"$ref":"#/components/schemas/SessionMessage.ToolContent"}},"metadata":{"type":"object"}},"required":["status","input","content"],"additionalProperties":false},"SessionMessage.ToolRunning":{"type":"object","properties":{"status":{"type":"string","enum":["running"]},"input":{"type":"object"},"metadata":{"type":"object"}},"required":["status","input","metadata"],"additionalProperties":false},"SessionMessage.ToolStreaming":{"type":"object","properties":{"status":{"type":"string","enum":["streaming"]},"input":{"type":"string"}},"required":["status","input"],"additionalProperties":false},"SessionMessage.Reasoning":{"type":"object","properties":{"type":{"type":"string","enum":["reasoning"]},"text":{"type":"string"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false}},"required":["type","text"],"additionalProperties":false},"SessionMessage.Text":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false}},"required":["type","text"],"additionalProperties":false},"SessionMessage.Shell":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["shell"]},"shellID":{"type":"string"},"command":{"type":"string"},"status":{"type":"string","enum":["running","exited","timeout","killed"]},"exit":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"output":{"$ref":"#/components/schemas/SessionMessage.ShellOutput"}},"required":["id","time","type","shellID","command","status"],"additionalProperties":false},"SessionMessage.ShellOutput":{"type":"object","properties":{"output":{"type":"string"},"cursor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["output","cursor","size","truncated"],"additionalProperties":false},"SessionMessage.Skill":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["skill"]},"skill":{"type":"string"},"name":{"type":"string"},"text":{"type":"string"}},"required":["id","time","type","skill","name","text"],"additionalProperties":false},"SessionMessage.System":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["system"]},"text":{"type":"string"},"description":{"type":"string"}},"required":["id","time","type","text"],"additionalProperties":false},"SessionMessage.Synthetic":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["synthetic"]},"text":{"type":"string"},"description":{"type":"string"},"metadata":{"$ref":"#/components/schemas/SessionMessage.SyntheticMetadata"}},"required":["id","time","type","text"],"additionalProperties":false},"SessionMessage.SyntheticMetadata":{"type":"object","properties":{"source":{"type":"string"},"childID":{"type":"string"},"shellID":{"type":"string"},"jobID":{"type":"string"},"state":{"type":"string"},"exit":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"timeout":{"type":"boolean"}},"additionalProperties":false},"SessionMessage.User":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"text":{"type":"string"},"presentation":{"$ref":"#/components/schemas/SessionMessage.Presentation"},"files":{"type":"array","items":{"$ref":"#/components/schemas/SessionMessage.FileAttachment"}},"uploads":{"type":"array","items":{"$ref":"#/components/schemas/SessionMessage.DriveFile"},"description":"Files of the space’s drive that the message attached. Get a link to each with `drive.download`."},"agents":{"type":"array","items":{"$ref":"#/components/schemas/SessionMessage.AgentAttachment"}},"skills":{"type":"array","items":{"$ref":"#/components/schemas/SessionMessage.SkillAttachment"}},"type":{"type":"string","enum":["user"]},"sender":{"$ref":"#/components/schemas/SessionMessage.Sender"},"channel":{"$ref":"#/components/schemas/ChannelOrigin.Info"},"schedule":{"$ref":"#/components/schemas/ScheduleOrigin.Info"},"webhook":{"$ref":"#/components/schemas/WebhookOrigin.Info"},"task":{"$ref":"#/components/schemas/TaskAssignment.Info"}},"required":["id","time","text","type"],"additionalProperties":false},"TaskAssignment.Info":{"type":"object","properties":{"taskId":{"type":"string"},"identifier":{"type":"string","description":"The task’s identifier, such as `REN-12`."},"title":{"type":"string"},"brief":{"type":"string","description":"What the agent reads after the heading: the description, handoff note, review and factory order."}},"required":["taskId","identifier","title","brief"],"additionalProperties":false,"description":"The task a message assigns to the chat’s agent."},"WebhookOrigin.Info":{"type":"object","properties":{"webhookId":{"type":"string"},"name":{"type":"string"},"requestId":{"type":"string","description":"The request in Ren, not the event ID of the provider."},"receivedAt":{"type":"string","description":"When Ren received the request, as an ISO 8601 instant."}},"required":["webhookId","name","requestId","receivedAt"],"additionalProperties":false,"description":"The webhook that sent a message, and the request that it came from."},"ScheduleOrigin.Info":{"type":"object","properties":{"scheduleId":{"type":"string"},"name":{"type":"string"},"scheduledAt":{"type":"string","description":"The time the run was for, as an ISO 8601 instant."}},"required":["scheduleId","name","scheduledAt"],"additionalProperties":false,"description":"The schedule that sent a message, and the time the run was for."},"ChannelOrigin.Info":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Channel.Provider"},"place":{"type":"string"},"threadUrl":{"type":"string"},"sender":{"type":"string"},"handle":{"type":"string"},"context":{"type":"string"},"trigger":{"type":"string","description":"The title of the trigger that started this message, when nobody mentioned Ren."}},"required":["provider","place","sender"],"additionalProperties":false,"description":"Where a message from Slack, Linear or GitHub came from, and what its thread holds."},"SessionMessage.Sender":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"],"additionalProperties":false},"SessionMessage.SkillAttachment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"text":{"type":"string"},"mention":{"$ref":"#/components/schemas/SessionMessage.Mention"}},"required":["id","name"],"additionalProperties":false},"SessionMessage.Mention":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false},"SessionMessage.AgentAttachment":{"type":"object","properties":{"name":{"type":"string"},"mention":{"$ref":"#/components/schemas/SessionMessage.Mention"}},"required":["name"],"additionalProperties":false},"SessionMessage.DriveFile":{"type":"object","properties":{"path":{"type":"string","description":"The file’s path in the drive of the chat’s space."},"name":{"type":"string"},"mime":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","name","mime","size"],"additionalProperties":false,"description":"A file of the drive that a message attaches."},"SessionMessage.FileAttachment":{"type":"object","properties":{"data":{"type":"string"},"mime":{"type":"string"},"source":{"$ref":"#/components/schemas/SessionMessage.FileSource"},"name":{"type":"string"},"description":{"type":"string"},"mention":{"$ref":"#/components/schemas/SessionMessage.Mention"}},"required":["data","mime","source"],"additionalProperties":false},"SessionMessage.FileSource":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["inline"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["uri"]},"uri":{"type":"string"}},"required":["type","uri"],"additionalProperties":false}]},"SessionMessage.Presentation":{"type":"object","properties":{"displayText":{"type":"string"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/SessionMessage.Quote"}}},"required":["displayText","comments"],"additionalProperties":false,"description":"How a client shows the message: the words the person wrote and the quotes they added. The model gets `text`."},"SessionMessage.Quote":{"type":"object","properties":{"type":{"type":"string","enum":["quote"]},"text":{"type":"string"},"comment":{"type":"string"},"source":{"type":"string","description":"Where the quote came from, such as a reply or a message."}},"required":["type","text"],"additionalProperties":false},"SessionMessage.ModelSwitched":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["model-switched"]},"model":{"$ref":"#/components/schemas/SessionModel.Ref"},"previous":{"$ref":"#/components/schemas/SessionModel.Ref"}},"required":["id","time","type","model"],"additionalProperties":false},"SessionMessage.AgentSwitched":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SessionMessage.ID"},"time":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false},"type":{"type":"string","enum":["agent-switched"]},"agent":{"type":"string"},"previous":{"type":"string"}},"required":["id","time","type","agent"],"additionalProperties":false},"Session.ClientAccess":{"anyOf":[{"$ref":"#/components/schemas/Session.ReadyAccess"},{"$ref":"#/components/schemas/Session.StartingAccess"},{"$ref":"#/components/schemas/Session.FailedAccess"},{"$ref":"#/components/schemas/Session.StoppedAccess"}]},"Session.StoppedAccess":{"type":"object","properties":{"status":{"type":"string","enum":["stopped"]}},"required":["status"],"additionalProperties":false,"description":"Its space was shut down. A message or a retry starts the brain again."},"Session.FailedAccess":{"type":"object","properties":{"status":{"type":"string","enum":["failed"]},"reason":{"type":"string"}},"required":["status","reason"],"additionalProperties":false},"Session.StartingAccess":{"type":"object","properties":{"status":{"type":"string","enum":["starting"]},"phase":{"type":"string","description":"What the brain is doing. Ask again in 2 seconds."}},"required":["status","phase"],"additionalProperties":false},"Session.ReadyAccess":{"type":"object","properties":{"status":{"type":"string","enum":["ready"]},"url":{"type":"string"},"token":{"type":"string"},"expiresAt":{"type":"string"}},"required":["status","url","token","expiresAt"],"additionalProperties":false},"Session.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Session.ID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"createdBy":{"$ref":"#/components/schemas/Auth.UserID"},"agentId":{"anyOf":[{"$ref":"#/components/schemas/Agent.ID"},{"type":"null"}],"description":"The agent the chat runs, or null for Ren."},"origin":{"$ref":"#/components/schemas/Session.Origin"},"harness":{"$ref":"#/components/schemas/Session.Harness"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/Session.Status"},"capabilities":{"$ref":"#/components/schemas/SessionCapabilities.Info"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"filesResetAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the chat moved to a new machine and its workspace files from before were lost, or null."}},"required":["id","spaceId","createdBy","agentId","origin","harness","title","status","capabilities","createdAt","updatedAt","archivedAt","filesResetAt"],"additionalProperties":false},"SessionCapabilities.Info":{"type":"object","properties":{"steer":{"type":"boolean"},"queue":{"type":"boolean"},"interrupt":{"type":"boolean"},"model":{"type":"boolean"},"permissions":{"type":"boolean"},"forms":{"type":"boolean"},"revert":{"type":"boolean"},"compact":{"type":"boolean"},"shell":{"type":"boolean"},"commands":{"type":"boolean"},"rename":{"type":"boolean"},"files":{"type":"boolean"}},"required":["steer","queue","interrupt","model","permissions","forms","revert","compact","shell","commands","rename","files"],"additionalProperties":false},"Session.Status":{"type":"string","enum":["idle","busy"]},"Session.Harness":{"anyOf":[{"type":"string","enum":["opencode"]}]},"Session.Origin":{"type":"string","enum":["chat","task","schedule","webhook","slack","linear","github"],"description":"What started the chat: a person in a chat, a task, a schedule, a webhook or a channel."},"Session.CreateInput":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Session.ID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"message":{"anyOf":[{"$ref":"#/components/schemas/Session.FirstMessage"},{"type":"null"}]},"defaultModels":{"anyOf":[{"$ref":"#/components/schemas/ModelTypes.Defaults"},{"type":"null"}]},"model":{"anyOf":[{"$ref":"#/components/schemas/SessionModel.Ref"},{"type":"null"}],"description":"The model and variant the session starts with, from `chat.models`. Without it the session’s settings give the model."}},"required":["id","spaceId"],"additionalProperties":false},"Session.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Session.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Session.OrderBy":{"type":"string","enum":["updated","created"]},"AgentMembership.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentMembership.ID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"agentId":{"$ref":"#/components/schemas/Agent.ID"},"isOwner":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","spaceId","agentId","isOwner","createdAt"],"additionalProperties":false},"AgentMembership.ID":{"type":"string","pattern":"^agm_"},"AgentMembership.CreateInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"agentId":{"$ref":"#/components/schemas/Agent.ID"}},"required":["spaceId","agentId"],"additionalProperties":false},"AgentMembership.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AgentMembership.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"McpInspection.Result":{"type":"object","properties":{"reachable":{"type":"boolean"},"server":{"anyOf":[{"$ref":"#/components/schemas/McpInspection.Server"},{"type":"null"}]},"auth":{"$ref":"#/components/schemas/McpInspection.Auth"},"tools":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/AppListing.Tool"}},{"type":"null"}],"description":"Sorted by name. Null when the server lists its tools only after a sign-in."},"readOnlyInferred":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the tools have `readOnly` from their name, because the server gave no `readOnlyHint`."},"source":{"anyOf":[{"type":"string","enum":["tools-list","server-card"]},{"type":"null"}]},"problem":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why Ren could not read the server."}},"required":["reachable","server","auth","tools","readOnlyInferred","source","problem"],"additionalProperties":false},"AppListing.Tool":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"readOnly":{"type":"boolean","description":"The tool only reads, as the MCP’s readOnlyHint says."},"price":{"$ref":"#/components/schemas/Mcp.ToolPrice"}},"required":["name","description","readOnly"],"additionalProperties":false},"Mcp.ToolPrice":{"type":"object","properties":{"usd":{"type":"number","minimum":0,"description":"Advertised USD per unit. Actual cost is reported in ren-cost-usd; rates may include fractional micro-dollars."},"unit":{"type":"string","minLength":1,"description":"The billed unit, such as call, row, page, target, keyword, domain, second or gib-second."},"note":{"type":"string","minLength":1,"description":"Price variations or charging conditions, when needed."}},"required":["usd","unit"],"additionalProperties":false},"McpInspection.Auth":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["oauth"]},"scopes":{"type":"array","items":{"type":"string"}},"client":{"$ref":"#/components/schemas/McpInspection.Client"}},"required":["type","scopes","client"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bearer","basic","unknown"]}},"required":["type"],"additionalProperties":false}],"description":"The auth the server asks for: none, a sign-in, a token, a user name and password, or unknown."},"McpInspection.Client":{"type":"string","enum":["metadata-document","registration","oauth-app"],"description":"How Ren gets an OAuth client: its client metadata document, dynamic registration, or an org OAuth app when the server allows neither."},"McpInspection.Server":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"websiteUrl":{"type":"string"}},"additionalProperties":false,"description":"What the server says about itself, in its initialize answer or its server card."},"McpInspection.Input":{"type":"object","properties":{"url":{"$ref":"#/components/schemas/Primitive.HttpsUrl_3"}},"required":["url"],"additionalProperties":false},"Primitive.HttpsUrl_3":{"type":"string"},"AppListing.Tools":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AppListing.Tool"}},"description":"The tools each MCP of the app offers, by MCP slug, as its tools/list returns them."},"AppRegistry.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/App.ID"},"slug":{"$ref":"#/components/schemas/Primitive.Slug_1"},"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"icon":{"anyOf":[{"type":"string"},{"type":"null"}]},"listing":{"$ref":"#/components/schemas/AppListing.Summary"},"managed":{"type":"boolean","description":"True when the app has an MCP that Ren runs and Ren credits pay for, so it works with no sign-in."},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","name","description","icon","listing","managed","revision"],"additionalProperties":false,"description":"A registry app as the catalog shows it. app.get returns its MCPs, skills and keys."},"AppListing.Summary":{"type":"object","properties":{"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"categories":{"$ref":"#/components/schemas/AppListing.Categories"},"examplePrompts":{"type":"array","items":{"type":"string"}},"toolCounts":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"How many tools each MCP of the app offers, by MCP slug. app-tools.get returns the tools."}},"required":["body","categories","examplePrompts","toolCounts"],"additionalProperties":false},"AppListing.Categories":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"},"minItems":1},"description":"Discovery labels by group, such as { roles: [engineer], functions: [research] }."},"AppRegistry.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AppRegistry.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Primitive.Slug_5":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Match a category in any group."},"AppProfile.Connect":{"type":"object","properties":{"appId":{"$ref":"#/components/schemas/App.ID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"profiles":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Info"}}},"required":["appId","spaceId","profiles"],"additionalProperties":false,"description":"An app a chat asks the person to connect: its space and the space’s profiles of it, with their gaps."},"AppProfile.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AppProfile.ID"},"appId":{"$ref":"#/components/schemas/App.ID"},"appSlug":{"$ref":"#/components/schemas/Primitive.Slug_1"},"slug":{"$ref":"#/components/schemas/AppProfile.Slug"},"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"kind":{"$ref":"#/components/schemas/AppProfile.Kind"},"userId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"allSpaces":{"type":"boolean"},"spaces":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.SpaceRef"},"description":"The listed spaces that the caller can see."},"hiddenSpaces":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The count of listed spaces that the caller cannot see."},"canAccess":{"type":"boolean","description":"True when the caller may change the spaces that list the profile."},"canShareEverySpace":{"type":"boolean","description":"True when the caller may share the profile with every space."},"canAdd":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.SpaceShape"},"description":"The kinds of space the caller may add to the list."},"canRemove":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.SpaceShape"},"description":"The kinds of space the caller may remove from the list."},"links":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Link"}},"items":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Item"}},"unused":{"type":"array","items":{"type":"object","properties":{"credentialId":{"$ref":"#/components/schemas/Credential.ID"},"label":{"$ref":"#/components/schemas/Credential.EnvName"}},"required":["credentialId","label"],"additionalProperties":false},"description":"Credentials of items that the app no longer declares. The egress refuses them."},"oauthApps":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.OAuthAppGate"}},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Skipped"}},"createdBy":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","appId","appSlug","slug","name","kind","userId","allSpaces","spaces","hiddenSpaces","canAccess","canShareEverySpace","canAdd","canRemove","links","items","unused","oauthApps","skipped","createdBy","createdAt","updatedAt"],"additionalProperties":false},"AppProfile.Skipped":{"type":"object","properties":{"kind":{"type":"string","enum":["mcps","skills","env"]},"slug":{"type":"string"},"also":{"$ref":"#/components/schemas/Primitive.Slug_4"}},"required":["kind","slug","also"],"additionalProperties":false,"description":"A part of the app that Ren leaves out in this org, because an older app has the same name (P25)."},"Primitive.Slug_4":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"The older app in the org that has the same name."},"AppProfile.OAuthAppGate":{"type":"object","properties":{"name":{"type":"string"},"isConfigured":{"type":"boolean"}},"required":["name","isConfigured"],"additionalProperties":false,"description":"An org OAuth app that the app needs. One gate per app, shown on every profile."},"AppProfile.Item":{"type":"object","properties":{"item":{"$ref":"#/components/schemas/Credential.Item"},"kind":{"$ref":"#/components/schemas/Credential.RequirementKind"},"label":{"$ref":"#/components/schemas/Credential.EnvName"},"name":{"type":"string"},"status":{"$ref":"#/components/schemas/AppProfile.ItemStatus"},"optional":{"type":"boolean","description":"An optional item is never a gap."},"credentialId":{"anyOf":[{"$ref":"#/components/schemas/Credential.ID"},{"type":"null"}]},"holder":{"anyOf":[{"$ref":"#/components/schemas/Credential.Account"},{"type":"null"}],"description":"Whose account a sign-in reached. A pasted value has none."}},"required":["item","kind","label","name","status","optional","credentialId","holder"],"additionalProperties":false},"AppProfile.ItemStatus":{"type":"string","enum":["ok","missing","reconnect","unavailable"]},"Credential.RequirementKind":{"type":"string","enum":["oauth","provider","fields","env"],"description":"How the item connects: a sign-in, a managed provider, an MCP’s pasted fields, or a pasted env key."},"AppProfile.Link":{"type":"object","properties":{"appId":{"$ref":"#/components/schemas/App.ID"},"profileId":{"anyOf":[{"$ref":"#/components/schemas/AppProfile.ID"},{"type":"null"}],"description":"Null while no profile of the dependency app is linked."}},"required":["appId","profileId"],"additionalProperties":false},"AppProfile.SpaceShape":{"type":"string","enum":["shared","joined","ownPrivate","otherPrivate"],"description":"A space as a list write sees it: a shared space the caller is not in, one they are in, their own private space, or another person’s."},"AppProfile.SpaceRef":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"AppProfile.Kind":{"type":"string","enum":["shared","private"],"description":"A shared profile belongs to the org; a private profile belongs to one person."},"AppProfile.Reach":{"type":"object","properties":{"profiles":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Info"}}},"required":["profiles"],"additionalProperties":false,"description":"The profiles that a chat reaches, with their gaps."},"AppProfile.PromoteInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID_6"}},"required":["spaceId"],"additionalProperties":false},"Space.ID_6":{"type":"string","pattern":"^spc_","description":"The one space that the shared profile lists."},"AppProfile.LinkInput":{"type":"object","properties":{"appId":{"$ref":"#/components/schemas/App.ID"},"profileId":{"anyOf":[{"$ref":"#/components/schemas/AppProfile.ID"},{"type":"null"}]}},"required":["appId","profileId"],"additionalProperties":false},"AppProfile.AccessInput":{"type":"object","properties":{"add":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Space.ID"}},{"type":"null"}]},"remove":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Space.ID"}},{"type":"null"}]},"allSpaces":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},"AppProfile.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}]}},"additionalProperties":false},"AppProfile.CreateInput":{"type":"object","properties":{"appId":{"$ref":"#/components/schemas/App.ID"},"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"slug":{"$ref":"#/components/schemas/AppProfile.Slug"},"kind":{"$ref":"#/components/schemas/AppProfile.Kind"},"allSpaces":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"spaceIds":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Space.ID"}},{"type":"null"}]},"links":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"appId":{"$ref":"#/components/schemas/App.ID"},"profileId":{"$ref":"#/components/schemas/AppProfile.ID"}},"required":["appId","profileId"],"additionalProperties":false}},{"type":"null"}]}},"required":["appId","name","slug","kind"],"additionalProperties":false},"AppProfile.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AppProfile.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Space.ID_5":{"type":"string","pattern":"^spc_","description":"Only the profiles that this space reaches."},"App.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/App.ID"},"slug":{"$ref":"#/components/schemas/Primitive.Slug_1"},"organizationId":{"anyOf":[{"$ref":"#/components/schemas/Auth.OrganizationID"},{"type":"null"}]},"ownerSpaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}]},"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"icon":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Requirement"}},"environment":{"$ref":"#/components/schemas/Packages.Setup"},"skills":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Skill.Summary"},"description":"The app’s skills without their instructions and files. app-skills.get returns them."},"mcps":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Mcp.Info"}},"dependsOn":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"}},"webhooks":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Webhook.Preset"},"description":"Webhooks that a space can turn on. Each one reads its name, message and parser from here."},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Counts the edits of the definition."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","organizationId","ownerSpaceId","name","description","icon","skills","mcps","revision","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Skill.Summary":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["content"]},"description":{"type":"string","minLength":1},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.SkillRequirement"}}},"required":["type","description"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["upstream"]},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.SkillRequirement"}},"upstream":{"type":"object","properties":{"url":{"type":"string"},"ref":{"type":"string","minLength":1,"description":"A Git branch, tag or commit. Omission follows the default branch. A branch or the default branch is read again by the brain: its new commits change the skill without a new release or catalog fingerprint. Name a commit to fix the content."},"path":{"type":"string"}},"required":["url","path"],"additionalProperties":false}},"required":["type","upstream"],"additionalProperties":false}],"description":"A skill without its content: a content skill has no instructions or files."},"App.TransferOwnershipInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"}},"required":["spaceId"],"additionalProperties":false},"App.UpdateInput":{"type":"object","properties":{"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Requirement"}},"environment":{"anyOf":[{"$ref":"#/components/schemas/Packages.Setup"},{"type":"null"}]},"skills":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Skill.Declaration"}},"mcps":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Mcp.Declaration"}},"dependsOn":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"}},"webhooks":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Webhook.Preset"},"description":"Webhooks that a space can turn on. Each one reads its name, message and parser from here."},"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}]},"description":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"icon":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"},{"type":"null"}]},"expectedRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The revision the edit starts from. Another edit gives 409."}},"required":["expectedRevision"],"additionalProperties":false,"description":"The whole definition: it replaces the current one."},"App.CreateInput":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1},"icon":{"anyOf":[{"$ref":"#/components/schemas/Primitive.HttpsUrl"},{"type":"null"}]},"requiredCredentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential.Requirement"}},"environment":{"anyOf":[{"$ref":"#/components/schemas/Packages.Setup"},{"type":"null"}]},"skills":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Skill.Declaration"}},"mcps":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Mcp.Declaration"}},"dependsOn":{"type":"array","items":{"$ref":"#/components/schemas/Primitive.Slug_1"}},"webhooks":{"type":"object","propertyNames":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"additionalProperties":{"$ref":"#/components/schemas/Webhook.Preset"},"description":"Webhooks that a space can turn on. Each one reads its name, message and parser from here."},"slug":{"$ref":"#/components/schemas/Primitive.Slug_1"},"ownerSpaceId":{"$ref":"#/components/schemas/Space.ID"}},"required":["name","description","slug","ownerSpaceId"],"additionalProperties":false},"App.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/App.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Agent.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Agent.ID"},"organizationId":{"anyOf":[{"$ref":"#/components/schemas/Auth.OrganizationID"},{"type":"null"}],"description":"Null for a global agent, such as `ren`, which every space can use and no one can change."},"ownerSpaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID"},{"type":"null"}],"description":"Null for a global agent."},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A `ResourceIcon.Descriptor`, or a preset image older profiles keep inline as a data URL. Null: the default icon."},"isSubagent":{"type":"boolean"},"settings":{"$ref":"#/components/schemas/Settings.Info"},"canUpdate":{"type":"boolean","description":"The caller is a member of the owner space, so can edit and archive the agent."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","organizationId","ownerSpaceId","name","description","icon","isSubagent","settings","canUpdate","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Agent.TransferOwnershipInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"}},"required":["spaceId"],"additionalProperties":false},"Agent.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"$ref":"#/components/schemas/Agent.Name"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"icon":{"anyOf":[{"$ref":"#/components/schemas/ResourceIcon.Descriptor"},{"type":"null"},{"type":"null"}]},"isSubagent":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"settings":{"anyOf":[{"$ref":"#/components/schemas/Settings.Info"},{"type":"null"}]}},"additionalProperties":false},"ResourceIcon.Descriptor":{"type":"string","maxLength":2048},"Agent.CreateInput":{"type":"object","properties":{"ownerSpaceId":{"$ref":"#/components/schemas/Space.ID"},"name":{"$ref":"#/components/schemas/Agent.Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"isSubagent":{"type":"boolean"},"settings":{"$ref":"#/components/schemas/Settings.Info"}},"required":["ownerSpaceId","name"],"additionalProperties":false},"Agent.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Agent.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Space.ID_4":{"type":"string","pattern":"^spc_","description":"The space whose files to use. Omit it for the organization’s."},"FileSystem.Source":{"type":"string","enum":["drive","memory"],"description":"`drive`: the files of a drive. `memory`: the files of a memory."},"FileSystem.Content":{"type":"object","properties":{"path":{"type":"string"},"mime":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The whole file’s size in bytes."},"encoding":{"type":"string","enum":["utf8","base64"]},"content":{"type":"string"},"truncated":{"type":"boolean","description":"True when content is only the file’s start."}},"required":["path","mime","size","encoding","content","truncated"],"additionalProperties":false,"description":"A file: text as `utf8`, anything else as `base64`."},"FileSystem.Page":{"type":"object","properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/FileSystem.Entry"},"description":"Folders first, then files, each sorted by path."},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null on the last page."},"actions":{"type":"array","items":{"$ref":"#/components/schemas/FileSystem.Action"},"description":"What the caller may do in the folder."}},"required":["entries","cursor","actions"],"additionalProperties":false,"description":"One page of the entries directly in a folder."},"FileSystem.Action":{"type":"string","enum":["upload","write","remove"],"description":"`upload`: add files to the folder through the source’s upload. `write`: create and edit files in the folder. `remove`: delete files of the folder."},"FileSystem.Entry":{"type":"object","properties":{"path":{"type":"string","description":"The path inside its source. A folder’s path ends with `/`."},"type":{"$ref":"#/components/schemas/FileSystem.EntryType"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"In bytes."},"modifiedAt":{"type":"string"},"mime":{"type":"string"}},"required":["path","type"],"additionalProperties":false,"description":"A file or a folder. A source omits what it does not know."},"FileSystem.EntryType":{"type":"string","enum":["file","directory"]},"ResourceIcon.Upload":{"type":"object","properties":{"url":{"type":"string","description":"Save it as the icon of a profile, an organization, a space or an agent."}},"required":["url"],"additionalProperties":false},"Drive.Link":{"type":"object","properties":{"url":{"type":"string","description":"A link that downloads the file, with no other credential."},"expiresAt":{"type":"string"}},"required":["url","expiresAt"],"additionalProperties":false},"Drive.Disposition":{"type":"string","enum":["attachment","inline"],"description":"Defaults to `attachment`."},"Space.ID_3":{"type":"string","pattern":"^spc_","description":"The space whose drive to use. Omit it for the organization’s drive."},"WriteResult.Upload":{"type":"object","properties":{"uploadId":{"type":"string"},"uploadUrl":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"The form fields to POST to `uploadUrl` before the file, which is the last field, named `file`."},"expiresAt":{"type":"string"}},"required":["uploadId","uploadUrl","fields","expiresAt"],"additionalProperties":false},"Drive.StartUploadInput":{"type":"object","properties":{"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID_3"},{"type":"null"}]},"path":{"$ref":"#/components/schemas/Drive.PathEncoded"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The file’s size in bytes. The upload must send exactly this many."}},"required":["path","size"],"additionalProperties":false},"Memory.Path":{"type":"string","description":"A file path relative to the memory root, such as `memory.md` or `people/ana.md`."},"Space.ID_2":{"type":"string","pattern":"^spc_","description":"The space whose memory to use. Omit it for the organization’s memory."},"Memory.File":{"type":"object","properties":{"path":{"$ref":"#/components/schemas/Memory.Path"},"content":{"type":"string"}},"required":["path","content"],"additionalProperties":false},"Memory.EditInput":{"type":"object","properties":{"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID_2"},{"type":"null"}]},"path":{"$ref":"#/components/schemas/Memory.Path"},"oldString":{"type":"string","minLength":1,"description":"The exact text to replace."},"newString":{"type":"string"},"replaceAll":{"anyOf":[{"type":"boolean","description":"Replace every occurrence. Without it, oldString must occur once."},{"type":"null"}]}},"required":["path","oldString","newString"],"additionalProperties":false},"Memory.WriteInput":{"type":"object","properties":{"spaceId":{"anyOf":[{"$ref":"#/components/schemas/Space.ID_2"},{"type":"null"}]},"path":{"$ref":"#/components/schemas/Memory.SafePathEncoded"},"content":{"type":"string","description":"The whole new content of the file."},"mode":{"anyOf":[{"type":"string","enum":["create","replace"],"description":"`create` refuses a path that has a file, with a conflict. `replace`, the default, creates or replaces."},{"type":"null"}]}},"required":["path","content"],"additionalProperties":false},"OrganizationSettings.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.OrganizationID"},"settings":{"$ref":"#/components/schemas/Settings.Info"},"canUpdate":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","settings","canUpdate","updatedAt"],"additionalProperties":false},"SpaceSettings.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"settings":{"$ref":"#/components/schemas/Settings.Info"},"canUpdate":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","settings","canUpdate","updatedAt"],"additionalProperties":false},"SpaceSettings.UpdateInput":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/Settings.Info"}},"required":["settings"],"additionalProperties":false},"EnvironmentProvider.Infos":{"type":"array","items":{"$ref":"#/components/schemas/EnvironmentProvider.Info"}},"EnvironmentProvider.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EnvironmentProvider.ID"},"title":{"type":"string"},"description":{"type":"string"},"configSchema":{"description":"A JSON Schema document (draft 2020-12) of the provider’s config."},"canLimitHosts":{"type":"boolean","description":"Its machines can keep to a list of hosts."},"canColocate":{"type":"boolean","description":"Its machines can run a brain and its tools on one machine: its templates can be co-located hands."}},"required":["id","title","description","configSchema","canLimitHosts","canColocate"],"additionalProperties":false},"EnvironmentTemplate.AffectedSpaces":{"type":"object","properties":{"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The space’s id."},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["spaces"],"additionalProperties":false,"description":"The live spaces whose settings name the machine, or whose brains or chats still run on it. A shutdown of each applies a change of the machine now."},"EnvironmentTemplate.ID":{"type":"string","pattern":"^tpl_"},"EnvironmentTemplate.AffectedSpacesInput":{"not":{"type":"null"}},"EnvironmentTemplate.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EnvironmentTemplate.ID"},"organizationId":{"$ref":"#/components/schemas/Auth.OrganizationID"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"$ref":"#/components/schemas/EnvironmentProvider.ID"},"config":{},"sessionsPerEnvironment":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"networking":{"$ref":"#/components/schemas/EnvironmentTemplate.Networking"},"buildStatus":{"$ref":"#/components/schemas/EnvironmentTemplate.BuildStatus"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The last image that built. Machines use it while a later build runs or after it fails."},"buildError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the latest build failed."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","organizationId","name","description","provider","config","sessionsPerEnvironment","networking","buildStatus","image","buildError","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"EnvironmentTemplate.BuildStatus":{"type":"string","enum":["queued","building","ready","failed"],"description":"The state of the latest build of the image. A provider that builds no image is ready at once."},"EnvironmentTemplate.Networking":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["unrestricted"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["limited"]},"allowPackageManagers":{"type":"boolean","description":"Allow the hosts of npm, PyPI, the Debian and Ubuntu mirrors and the Go module proxy."},"allowMcpServers":{"type":"boolean","description":"Allow the hosts of the MCP servers of the space."},"allowedHosts":{"type":"array","items":{"$ref":"#/components/schemas/HostName.Pattern"},"maxItems":100}},"required":["type","allowPackageManagers","allowMcpServers","allowedHosts"],"additionalProperties":false}],"description":"Where a machine of the template can connect. A limited machine always reaches the hosts of the credentials of its space."},"EnvironmentTemplate.RetryBuildInput":{"not":{"type":"null"}},"EnvironmentTemplate.UpdateInput":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"config":{"anyOf":[{"description":"A changed config queues a build. A machine gets the new image when it wakes."},{"type":"null"}]},"sessionsPerEnvironment":{"anyOf":[{"type":"integer","minimum":1,"maximum":100},{"type":"null"}]},"networking":{"anyOf":[{"$ref":"#/components/schemas/EnvironmentTemplate.Networking"},{"type":"null"}]}},"additionalProperties":false},"EnvironmentTemplate.CreateInput":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"$ref":"#/components/schemas/EnvironmentProvider.ID"},"config":{"description":"The settings of the provider. Its schema is in the provider list."},"sessionsPerEnvironment":{"type":"integer","minimum":1,"maximum":100},"networking":{"$ref":"#/components/schemas/EnvironmentTemplate.Networking_1"}},"required":["name","provider","config"],"additionalProperties":false},"EnvironmentTemplate.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EnvironmentTemplate.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"OrganizationInviteLink.Joined":{"type":"object","properties":{"organizationId":{"$ref":"#/components/schemas/Auth.OrganizationID"},"spaceId":{"$ref":"#/components/schemas/Space.ID_1"},"slug":{"type":"string"}},"required":["organizationId","spaceId","slug"],"additionalProperties":false},"Space.ID_1":{"type":"string","pattern":"^spc_","description":"The first space of the link: where the person lands."},"OrganizationInviteLink.Token_1":{"type":"string","minLength":1,"maxLength":128},"OrganizationInviteLink.Preview":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/OrganizationInviteLink.State"},"organization":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.OrganizationID"},"name":{"type":"string"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","logo"],"additionalProperties":false},{"type":"null"}]},"inviter":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false},{"type":"null"}]},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["state","organization","inviter","spaces"],"additionalProperties":false},"OrganizationInviteLink.State":{"type":"string","enum":["pending","expired","revoked","invalid"],"description":"`invalid`: the link never existed."},"OrganizationInviteLink.ID":{"type":"string","pattern":"^oil_"},"OrganizationInviteLink.List":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationInviteLink.Info"}}},"required":["items"],"additionalProperties":false,"description":"The links that still work: not revoked and not expired. The newest comes first."},"OrganizationInviteLink.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OrganizationInviteLink.ID"},"token":{"$ref":"#/components/schemas/OrganizationInviteLink.Token"},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"description":"The shared spaces that the link adds people to. The organization’s first space is always one."},"createdBy":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.UserID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"uses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many times people used the link."},"expiresAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","token","spaces","createdBy","uses","expiresAt","createdAt"],"additionalProperties":false},"OrganizationInviteLink.Token":{"type":"string","minLength":1,"maxLength":128,"description":"The secret in the link: `/join/<token>` on the app’s address."},"OrganizationInviteLink.CreateInput":{"type":"object","properties":{"spaceIds":{"type":"array","items":{"$ref":"#/components/schemas/Space.ID"},"description":"Shared spaces that you are in. Ren adds the organization’s first space to the link when it is not here."},"expiresIn":{"$ref":"#/components/schemas/OrganizationInviteLink.Expiry"}},"required":["spaceIds","expiresIn"],"additionalProperties":false},"OrganizationInviteLink.Expiry":{"type":"string","enum":["1d","7d","30d"],"description":"When a new link expires: in 1 day, in 7 days or in 30 days."},"SpaceInviteLink.Joined":{"type":"object","properties":{"organizationId":{"$ref":"#/components/schemas/Auth.OrganizationID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"slug":{"type":"string"}},"required":["organizationId","spaceId","slug"],"additionalProperties":false},"SpaceInviteLink.Token_1":{"type":"string","minLength":1,"maxLength":128},"SpaceInviteLink.Preview":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/SpaceInviteLink.State"},"organization":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.OrganizationID"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"space":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false},{"type":"null"}],"description":"Null when the person is outside the organization or the link is invalid."}},"required":["state","organization","space"],"additionalProperties":false},"SpaceInviteLink.State":{"type":"string","enum":["joinable","member","outside","invalid"],"description":"`joinable`: the person is in the organization and can join. `member`: already in the space. `outside`: not in the space’s organization. `invalid`: the link was reset, its space archived, or it never existed."},"SpaceInviteLink.Info":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"token":{"$ref":"#/components/schemas/SpaceInviteLink.Token"},"uses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many people joined the space with this link."},"createdAt":{"type":"string"}},"required":["spaceId","token","uses","createdAt"],"additionalProperties":false},"SpaceInviteLink.Token":{"type":"string","minLength":1,"maxLength":128,"description":"The secret in the link: `/join/<token>` on the app’s address."},"SpaceJoinRequest.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.JoinRequestID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"userId":{"$ref":"#/components/schemas/Auth.UserID"},"name":{"type":"string"},"email":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/SpaceJoinRequest.Status"},"decidedBy":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}]},"createdAt":{"type":"string"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","spaceId","userId","name","email","image","note","status","decidedBy","createdAt","decidedAt"],"additionalProperties":false},"SpaceJoinRequest.Status":{"type":"string","enum":["pending","approved","declined","cancelled"],"description":"A pending request waits for a member of the space. It ends as approved or declined, or cancelled by the person who asked. Ren also cancels it when the person joins another way, the space is archived or the person leaves the organization."},"Space.JoinRequestID":{"type":"string","pattern":"^sjr_"},"SpaceJoinRequest.DecisionInput":{"not":{"type":"null"}},"SpaceJoinRequest.CreateInput":{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["spaceId"],"additionalProperties":false},"SpaceJoinRequest.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SpaceJoinRequest.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"SpaceMember.Info":{"anyOf":[{"$ref":"#/components/schemas/SpaceMember.Active"},{"$ref":"#/components/schemas/SpaceMember.Pending"}]},"SpaceMember.Pending":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.AssignmentID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"status":{"type":"string","enum":["pending"]},"email":{"type":"string"},"createdAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","spaceId","status","email","createdAt","archivedAt"],"additionalProperties":false},"Space.AssignmentID":{"type":"string","pattern":"^spp_"},"SpaceMember.Active":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.MembershipID"},"spaceId":{"$ref":"#/components/schemas/Space.ID"},"status":{"type":"string","enum":["active"]},"userId":{"$ref":"#/components/schemas/Auth.UserID"},"name":{"type":"string"},"email":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","spaceId","status","userId","name","email","image","createdAt","archivedAt"],"additionalProperties":false},"Space.MembershipID":{"type":"string","pattern":"^spm_"},"SpaceMember.ID":{"anyOf":[{"$ref":"#/components/schemas/Space.MembershipID"},{"$ref":"#/components/schemas/Space.AssignmentID"}]},"SpaceMember.CreateInput":{"anyOf":[{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"userId":{"$ref":"#/components/schemas/Auth.UserID"}},"required":["spaceId","userId"],"additionalProperties":false},{"type":"object","properties":{"spaceId":{"$ref":"#/components/schemas/Space.ID"},"email":{"type":"string","minLength":1,"maxLength":320}},"required":["spaceId","email"],"additionalProperties":false}]},"SpaceMember.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SpaceMember.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"SpaceMember.Status":{"type":"string","enum":["active","pending"]},"Space.Info":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Space.ID"},"organizationId":{"$ref":"#/components/schemas/Auth.OrganizationID"},"kind":{"$ref":"#/components/schemas/Space.Kind"},"ownerUserId":{"anyOf":[{"$ref":"#/components/schemas/Auth.UserID"},{"type":"null"}],"description":"The owner of a private space. Null for a shared space."},"slug":{"$ref":"#/components/schemas/Primitive.Slug"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A `ResourceIcon.Descriptor`, or a preset image older profiles keep inline as a data URL. Null: the default icon."},"brainScope":{"$ref":"#/components/schemas/Brain.Scope"},"brain":{"$ref":"#/components/schemas/Space.BrainMachine"},"hand":{"$ref":"#/components/schemas/Space.Hand"},"compute":{"$ref":"#/components/schemas/Space.Compute"},"memberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"membershipId":{"anyOf":[{"$ref":"#/components/schemas/Space.MembershipID"},{"type":"null"}]},"factory":{"$ref":"#/components/schemas/Factory.Info"},"canUpdate":{"type":"boolean"},"canJoin":{"type":"boolean","description":"An admin who is not a member can join this shared space."},"canRequestJoin":{"type":"boolean","description":"A member of the organization who is not in this shared space and has no pending request can ask to join."},"joinRequestId":{"anyOf":[{"$ref":"#/components/schemas/Space.JoinRequestID"},{"type":"null"}],"description":"The caller’s pending request to join this space. Null when there is none."},"canAddMember":{"type":"boolean"},"canRemoveMember":{"type":"boolean"},"canArchive":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","organizationId","kind","ownerUserId","slug","name","description","icon","brainScope","brain","hand","compute","memberCount","membershipId","factory","canUpdate","canJoin","canRequestJoin","joinRequestId","canAddMember","canRemoveMember","canArchive","createdAt","updatedAt","archivedAt"],"additionalProperties":false},"Factory.Info":{"type":"object","properties":{"maxHandoffs":{"type":"integer","minimum":1,"maximum":100,"description":"Handoffs before a person decides."},"agents":{"type":"array","items":{"$ref":"#/components/schemas/Factory.Entry"},"maxItems":64}},"required":["agents"],"additionalProperties":false,"description":"The space’s agents in board order, with their handoffs."},"Factory.Entry":{"type":"object","properties":{"agentId":{"type":"string"},"maxRuns":{"type":"integer","minimum":1,"maximum":20,"description":"Runs of this agent before a person decides."},"finish":{"type":"boolean","enum":[true],"description":"It can finish the task: the factory’s work is done and the task waits for a person or a merge."},"to":{"type":"array","items":{"$ref":"#/components/schemas/Factory.Edge"},"description":"The agents it can hand off to. Without it, any agent."}},"required":["agentId"],"additionalProperties":false},"Factory.Edge":{"type":"object","properties":{"agentId":{"type":"string"},"max":{"type":"integer","minimum":1,"maximum":10,"description":"Handoffs on this edge before a person decides."},"else":{"type":"string","description":"Gets the task at the max."},"start":{"$ref":"#/components/schemas/Factory.StartMode"}},"required":["agentId"],"additionalProperties":false},"Space.Compute":{"type":"object","properties":{"isPending":{"type":"boolean","description":"A brain of the space still runs an older brain or hand setting, or an older image of its template. It applies the new one when it wakes, or at a shutdown."},"shutdown":{"anyOf":[{"type":"string","enum":["running"]},{"type":"null"}],"description":"A shutdown of the space runs now."},"lastShutdown":{"anyOf":[{"$ref":"#/components/schemas/Space.ShutdownReport"},{"type":"null"}]}},"required":["isPending","shutdown","lastShutdown"],"additionalProperties":false},"Space.ShutdownReport":{"type":"object","properties":{"finishedAt":{"type":"string"},"problems":{"type":"array","items":{"type":"string"},"description":"What the shutdown could not confirm: a brain whose chats it could not sync, or a machine it could not destroy. Empty when all went as planned."}},"required":["finishedAt","problems"],"additionalProperties":false},"Space.Hand":{"anyOf":[{"type":"object","properties":{"placement":{"type":"string","enum":["colocated"]}},"required":["placement"],"additionalProperties":false},{"type":"object","properties":{"placement":{"type":"string","enum":["remote"]},"environmentTemplateId":{"$ref":"#/components/schemas/EnvironmentTemplate.ID"}},"required":["placement","environmentTemplateId"],"additionalProperties":false},{"type":"object","properties":{"placement":{"type":"string","enum":["none"]}},"required":["placement"],"additionalProperties":false}],"description":"Where the space’s chats run file and shell tools: on the brain’s own machine, on machines of a template that chats share, or nowhere. A change reaches a brain when it wakes; a chat started with none gets tools then."},"Space.BrainMachine":{"type":"object","properties":{"provider":{"anyOf":[{"$ref":"#/components/schemas/EnvironmentProvider.ID"},{"type":"null"}],"description":"The brain provider of the space’s brains. Null when the deployment runs brains in cells."},"environmentTemplateId":{"anyOf":[{"$ref":"#/components/schemas/EnvironmentTemplate.ID"},{"type":"null"}],"description":"A built template of the brain provider: the image, size and host list of the brain’s machine. Null: Ren’s system image."}},"required":["provider","environmentTemplateId"],"additionalProperties":false,"description":"The machine of the space’s brains. A change reaches a brain when it wakes."},"Brain.Scope":{"type":"string","enum":["session","space"]},"Primitive.Slug":{"type":"string","maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Unique among the live spaces of the organization. A new name does not change it."},"Space.Kind":{"type":"string","enum":["shared","private"],"description":"A shared space belongs to its members. A private space belongs to its owner, who is its only member; it never changes kind."},"Space.ShutdownInput":{"not":{"type":"null"},"description":"Stops all work of the space, deletes the files on its machines and may lose chat changes that were not synced. Its brains and hands start again with the space’s settings at the next new work."},"Space.UpdateInput":{"type":"object","properties":{"factory":{"anyOf":[{"$ref":"#/components/schemas/Factory.Info"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"icon":{"anyOf":[{"$ref":"#/components/schemas/ResourceIcon.Descriptor"},{"type":"null"},{"type":"null"}]},"brainScope":{"anyOf":[{"$ref":"#/components/schemas/Brain.Scope"},{"type":"null"}]},"brain":{"anyOf":[{"$ref":"#/components/schemas/Space.BrainMachine"},{"type":"null"}]},"hand":{"anyOf":[{"$ref":"#/components/schemas/Space.Hand"},{"type":"null"}]}},"additionalProperties":false},"Space.CreateInput":{"type":"object","properties":{"name":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":256},"slug":{"anyOf":[{"$ref":"#/components/schemas/Primitive.Slug_1"},{"type":"null"}],"description":"Without it, Ren makes one from the name and adds -2, -3, … when it is taken."},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"Space.Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Space.Info"}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Invitation.Preview":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/Invitation.State"},"organization":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.OrganizationID"},"name":{"type":"string"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","logo"],"additionalProperties":false},{"type":"null"}]},"inviter":{"anyOf":[{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"string"}},"required":["name","email"],"additionalProperties":false},{"type":"null"}]}},"required":["state","organization","inviter"],"additionalProperties":false},"Invitation.State":{"type":"string","enum":["pending","expired","accepted","unavailable","invalid"]},"Auth.Me":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/Auth.User"},"organization":{"anyOf":[{"$ref":"#/components/schemas/Auth.Organization"},{"type":"null"}]}},"required":["user","organization"],"additionalProperties":false},"Auth.Organization":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.OrganizationID"},"name":{"type":"string"},"slug":{"type":"string"},"logo":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]}},"required":["id","name","slug"],"additionalProperties":false},"Auth.User":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Auth.UserID"},"name":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"image":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]}},"required":["id","name","email","emailVerified"],"additionalProperties":false},"Health.Info":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/Health.Status"},"version":{"type":"string"}},"required":["status","version"],"additionalProperties":false},"Health.Status":{"anyOf":[{"type":"string","enum":["ok"]}]}},"securitySchemes":{"bearer":{"description":"A Better Auth session token, for the CLI and SDK, or a Ren MCP access token.","type":"http","scheme":"Bearer"},"cookie":{"description":"The Better Auth session cookie, for browsers. Named `__Secure-better-auth.session_token` over HTTPS.","type":"apiKey","name":"better-auth.session_token","in":"cookie"}}},"security":[],"tags":[{"name":"health"},{"name":"me"},{"name":"invitation"},{"name":"space"},{"name":"space-member"},{"name":"space-join-request"},{"name":"space-invite-link"},{"name":"join-link"},{"name":"organization-invite-link"},{"name":"organization-join-link"},{"name":"environment-template"},{"name":"environmentProvider"},{"name":"space-settings"},{"name":"organization-settings"},{"name":"memory"},{"name":"drive"},{"name":"icon"},{"name":"files"},{"name":"agent"},{"name":"app"},{"name":"app-skills"},{"name":"app-profile"},{"name":"app-profile-reach"},{"name":"app-registry"},{"name":"app-tools"},{"name":"mcp-inspect"},{"name":"agent-membership"},{"name":"session"},{"name":"chat"},{"name":"task"},{"name":"task-comment"},{"name":"task-activity"},{"name":"link"},{"name":"label"},{"name":"view"},{"name":"schedule"},{"name":"schedule-run"},{"name":"webhook"},{"name":"webhook-request"},{"name":"artifact"},{"name":"credential"},{"name":"credential-connect"},{"name":"oauth-session"},{"name":"oauth-app"},{"name":"ren-inference"},{"name":"provider"},{"name":"limits"},{"name":"billing"},{"name":"onboarding"},{"name":"channel-install"},{"name":"channel-mapping"},{"name":"channel-connect"},{"name":"repository"},{"name":"sign-in"},{"name":"infra"},{"name":"insights"},{"name":"feedback"}]}