feat: add recover ai route

This commit is contained in:
2023-11-23 12:45:46 +01:00
parent a8cf13157b
commit 84987129e6
6 changed files with 165 additions and 1 deletions

View File

@ -9,6 +9,16 @@ export async function getPublicPortraits() {
})).items
}
export function getInvite(id: string) {
return pb.collection("invites").getOne(id)
}
export function setInvitePortrait(id: string, url: string) {
return pb.collection("invites").update(id, {
portrait: url
})
}
export function createPerson({ name, confidence, portrait, portrait_public, noble_name, hair_color, hair_type, hair_length, skin_color }: { name: string, portrait: string, portrait_public: boolean, hair_type: string, hair_length: string, hair_color: string, confidence: number, noble_name: string, skin_color: string }) {
return pb.collection("invites").create({
name,